Hi everyone,
I was trying to include linear and quadratic id specific time trends in my model (separately in two different models). I used the following code. Can anyone confirm if I did the correct code? Any help would be highly appreciated:
Linear time trend: i.Country##c.Year
Quadratic time trend: ***Generating variable for quadratic time trend.
egen Year1=group(Year)
gen Year2=Year1^2
i.Country1##c.Year2
One additional question I was facing was, how will the results differ if I use one "#" instead of two "##"? Thank you!
Related Posts with Creating country specific linear and quadratic time trends
Mac STATA graph errorHello, I am running STATA 16 on my mac with BigSur. For some reason, STATA (updated today) will no l…
Creating, appending and exporting tablesDear all, I have a dataset of people who have lost their employment during the period 2019-2021. I h…
How to create drug classification variable using generic drug name variableHello. I am research student that is new to STATA and I am trying to learn how to create a drug clas…
Limited number of categories with cmmprobitHi, I need to run a multinomial discrete choice model, where I have a wide number of choices (50+) …
no observations when using GMM xtabond2I am trying to use one-step system GMM in stata using xtabond2 but keep getting the error 'no observ…
Subscribe to:
Post Comments (Atom)
0 Response to Creating country specific linear and quadratic time trends
Post a Comment