Hello!
I am working on a panel dataset.
I want to create a dummy variable that indicates weither my hp trend variable is increasing or declining for each country (Dummy =1 if trend is increasing for country i and 0 if declining).
How I can do this in stata? I believe I have to start with the gen Dummy=1 if ...
I don't know what to use after " if " for that condition.
Thank you in advance.
Related Posts with Creating dummy variable to indicate if trend increasing or decreasing
Identifying whether any subset of team members previously collaboratedHi everyone, I am currently faced with a fun little challenge which is giving me a bit of a headach…
New command pyconvertu in SSCI'd like to thank professor Baum for uploading the command to SSC! The pyconvertu command converts …
Converting do/ado files into text by codeHi all; I have been using STATA in the past couple of years and developed lots of codes so far in b…
how to detect problem with this residuals vs fits plot?Dear Statalist, I'm running a linear regression with panel data, and I need to include time and loc…
Combining Multiple Likert-Scale Ordinal Variables to Create One New VariableGood Afternoon, I have 5 ordinal Likert Scale Variables that have been labeled. I am interested in c…
Subscribe to:
Post Comments (Atom)
0 Response to Creating dummy variable to indicate if trend increasing or decreasing
Post a Comment