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
Panel ARDL Optimal Lag Selectin Loopforval i=1/24 { qui xtreg y x1 x2 x3 x4 x5 /// l`i'.y l`i'.x1 l`i'.x2 l`i'.x3 l`i'.x4 l`i'.x5, fe qu…
Multiplication using genHello all, I have generated a new variable using gen: gen acmeanweekly = (aud1avfreq_7*aud2avamoun…
A histogram to show posterior distributions after VARDear all I have seen in a few papers in macroeconomics (which is not my field of expertise), histog…
Help with heteroskedasticityHello everyone. I'm doing my final thesis for university and I have a problem I don't know how to s…
Fixed Effect Model RegressionHi I am studying homicide rates in developing countries over a 12 year period and using a fixed eff…
Subscribe to:
Post Comments (Atom)
0 Response to Creating dummy variable to indicate if trend increasing or decreasing
Post a Comment