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
(Quasi-)Three-dimensional panel data with binary depedent and independent variablesDear Stata-community, I have just started my PhD and am quite new to stata and could use some guidan…
How to collapse annual data into decade observations for panel dataHi, I have a dataset put together from the Penn World Tables, and I'm working to understand the rel…
Trend analysis - ptrendHi Listers, I am interested in assessing the relationship between diabetes diagnosis (yes/no) and a…
Baseline characteristics with multiple imputed dataDear all, I am working with multiple imputed data from a RCT with an intervention and a control gr…
Firm/Entity Fixed EffectDear all, I try to include a Firm/Entity fixed effect in my regression model, but I cant specifical…
Subscribe to:
Post Comments (Atom)
0 Response to variable with 2 condition
Post a Comment