Good morning everyone,
I have a problem on STATA.
I have 2 variables (Ebitda08 and Ebitda09) and a third variable (X) which has a value between 0 and 5. Which command should I use in order to create a new variable that, only in case X=1, gives a value equal to Ebitda09 - Ebitda08 ?
Thank you!
Related Posts with variable with 2 condition
Color for figure: twoway (tsline)Hi all, I am making a figure and I would like to differentiate between colors. Specifically, I want…
graph x-axis not legibleI used the code below to generate the attached plot but the values on the x-axis are not legible. Ki…
How to weight the Gini coefficient decomposition?hi all, i want the Gini coefficient decomposition in Lerman-Yitzhaki's method. but "descogini" does…
Formatting datetime from one format to another in same variableHello everyone! I am facing some issues with my timestamp variable. The data that I have received f…
Accessing Files Created within SubprogramI am writing a Stata .ado program that performs the same subroutine many times. As such, I would lik…
Subscribe to:
Post Comments (Atom)
0 Response to variable with 2 condition
Post a Comment