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
-estimates use-, error message when reading stored estimates across Stata versionsI have one model estimates file made using Stata v15.1. My co-worker is trying to do -estimates use-…
WeightingGreetings Stata community, Am using Stata version 13. I would like to perform a chi-square test for…
Maximum CSV size in Stata SE and what to do about 'fat' dataI have a dataset with 4600 observations of 3500 variables. The .xlsx file is 90 MB and the .csv vers…
test equality of coefficients from different models estimated by user written commandsDear All, I want to test equality of regression coefficients from to models. My first model is basi…
Does -xtmixed- use the full data set ?Dear all, In texts books, we are told that mixed effects models use the "full" data set. For exampl…
Subscribe to:
Post Comments (Atom)
0 Response to Creating dummy variable to indicate if trend increasing or decreasing
Post a Comment