Hello everyone!
I am working with panel data consisting of 9 countries over the period of 2000-2017. I want to use country, time and both country and time random effects in my model but a little bit confused with commands. My panel setting is "xtset country_id year".
For time random effects, is the command the same as for time fixed effects, when you only need command "reg y x i.year"?
Does command for country random effects looks like "xtreg y x i.country_id, re" and for both country and time random effects "xtreg y x i.country_id i.year, re"?
Thank you for your help, Sergey Medvedev
Related Posts with Time and country random effects
Interpretation of ROC regression resultsHi all, I performed ROC regressio using the rocreg command and I have the desired results. I know t…
three equations in structure model through "cmp"hello, I am trying to get the regression result of a structure model (which include three equations…
Fixed effectsDear all, I have a cross sectional data with a variable showing number of siblings "n_siblings" for…
Disable auto-complete in do-file editorIs it possible to disable the do-file editor's auto-complete feature in Stata 17? If so, how? …
Display FormatGreetings Everyone! Hopefully, you all be doing well, I have a question regarding the display forma…
Subscribe to:
Post Comments (Atom)
0 Response to Time and country random effects
Post a Comment