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
Spectral decomposition in MataHi Mata users, I would like to know if there is a built-in function in Mata that calculates the squ…
VentilesHello, I want to take a variable of mine, put it into ventiles, then use collapse to graph the mean…
Questions about testing equality of survivor functions in matched patient dataI have two different datasets of patients and I would like to perform survival analyses to compare t…
Export trade durationHello, I am trying to assign consecutive years of exports to my data. My data consists of Years, pr…
Power calculation using pairwise matching design.Hi All, For our cluster level specification, we are currently using “clustersampsi” command in Stat…
Subscribe to:
Post Comments (Atom)
0 Response to variable with 2 condition
Post a Comment