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
How to estimate the trade creation and diversion effects with exporter-impoter-specific time trend?Hello guys in Statalist! I have some problems with estimation on trade creation and diversion effec…
Panel Data Help! Creating a Change VariabelHello! This is my first post and very much in need of help with a project I've been working on for s…
Replace values of string variables based on a fraction of my datasetHello. I'm using a mapping table linking a question (varname) to its short label (label) in a survey…
Panel Regression Help!!Hi all!! Firstly, thank you for reading/helping! I'm attempting a project on looking at CEO persona…
meglmHello All, I have two datasets, one with a binary outcome and the second with a count outcome. I ha…
Subscribe to:
Post Comments (Atom)
0 Response to Time and country random effects
Post a Comment