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
help with making automated tables in stataI am working on a project running regression models for 10 dependent variables and I need to do subg…
Psm-ddHi Everyone, I am not sure that this question may or may not asked on this forum. I would like to k…
User-written KHB command: How do I Interpret Indirect Effects and Determine Significance?Hello everyone, I'm using the user-written KHB command in Stata to conduct mediation analyses using…
help interpreting of model with change score as dependent variable - treatment effectHello, I'm working on a study where the goal is to determine the effect of a treatment. Everyone rec…
Mean using "if" with string variablesA colleague used the exact code below to run a meta-analysis with the if statement being string vari…
Subscribe to:
Post Comments (Atom)
0 Response to variable with 2 condition
Post a Comment