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
approach to do lasso inference for survival model using Poisson regressionI was trying to do lasso inference for survival ,model. The variables of interest are : AMIS, BMIS D…
Testing coefficientsDear statalists, I am running 12 different regressions of political risk factors on the amount of M…
RFC (request for comments) on new package "require.ado"Hi all, There is an undocumented ado-file in ftools which I found quite useful for my own work, so …
Variable creation based on same variableHi. I need help creating a variable based on the same variable data from a different row. Basically …
Plotting local variablesHi all, so my problem is the following. I am creating this difference: valore_aggiunto_`k'[1]- valo…
Subscribe to:
Post Comments (Atom)
0 Response to Creating country specific linear and quadratic time trends
Post a Comment