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
How to interpret the coefficient of the variable that takes first difference?Panel data model. x takes first difference to become stationary. Then how to interpret the coefficie…
titles of factor variables in output of a regressionDear all, I am running an OLS regression using factor variable as a regressor: Code: reg punt_glob…
Reverse each axis after -grqreg-Dear All, Applying the -qreg- command, I attempt to reverse the X- and Y-axis in the graphs compute…
Do file beginner question I am trying to improve my understanding of do file scripting. For disclosure, I program competently…
How to test the difference between marginal effects in StataI have an ordinary least squares regression with an interaction term: Code: regress price c.trunk#…
Subscribe to:
Post Comments (Atom)
0 Response to Creating dummy variable to indicate if trend increasing or decreasing
Post a Comment