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
Compare: Logit regress with Categorical variables with Chi2 testDear all, I have problem with Logit regress. PHP Code: use https://thongke.club/data/logit.dt…
reshaping bilateral dataDear Statalist members, I have an issue to reshape the bilateral exchange rate data, could someone …
Syntax for By var: with IF statementThis is not a pressing matter as I easily found a work-around, I was just curious if anyone could te…
I2 using metaprop states "overall (I^2=0.00%, p= . )" NB: no I2 and no p-value for I2Hi. I am using metaprop to calculate prevalence of infections. The command I am using is metaprop p…
using lagged values to find 5 year growth rate when there are missing years in the dataHi, I want to create a variable that shows the 5 year growth rate. My first thought is to write som…
Subscribe to:
Post Comments (Atom)
0 Response to Creating dummy variable to indicate if trend increasing or decreasing
Post a Comment