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
Dynamic panel data analysis with two dependent variablesHey, I want to do an arellano bond estimation on my data. My equation is GEit = a + b1GBit + b2 Xi…
Addition of date / ageHello , I'm working on computing age of firms from incorporation date. Some of the dates in my data…
Residual Diagnostic TestsHello! Probably a stupid question, but still relatively new to Stata. I have a wage regression and …
Food Insecurity Experience ScaleHi, I hope all's well. I want to estimate FAO's Food Insecurity Experience Scale in STATA. Please c…
Facing problem - mapping using spmap packageDear All, I am using STATA 14 to create a map using spmap package. I have a variable "club" which re…
Subscribe to:
Post Comments (Atom)
0 Response to Creating country specific linear and quadratic time trends
Post a Comment