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
Look up information from one observation for another (and: Unexpected error in -vlookup-)As part of a matching exercise, I am trying to bring in information from one observation into a diff…
linksDoes this make a link? https://www.google.com/ (yes) …
Fama-Macbeth (1973) with a cross-sectional invariant variableDear all, How do I properly run a Fama-Macbeth regression with a cross-sectional invariant variable…
Extracting Specific String Elements of a String VariableHello All, I would like to extract certain specified string components of a string variable so that…
Diff-in-diff estimation in stataHi Mr. Clyde Schechter, I am working with a panel dataset containing the 50 states (+D.C) containin…
Subscribe to:
Post Comments (Atom)
0 Response to Time and country random effects
Post a Comment