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
Ramsey RESET TestSorry if this looks trivial, but what is the command to perform a Ramsey Regression Equation Specifi…
how to use zanthro with further options on weight for length v.s. weight for height Hello, I run the following commands and did calculated weight for length: //egen WLZ_WHO=zanthro(we…
Testing equality of coefficients from two identical instrumented regressions (ivreg2) estimated on different samplesDear Statalist: I am trying to make a comparison similar to that in Columns 1 and 2 of Table 6 in t…
Respondent invariant variables in a panel regressionHi, I am new to STATA. I have panel data (based on survey results) with various respondent invariant…
Exporting iterative Metaan results to excelI developed an iterative loop to calculate Metaan for a total of 39 studies. I have been trying to e…
Subscribe to:
Post Comments (Atom)
0 Response to Creating country specific linear and quadratic time trends
Post a Comment