Hello everyone!
I am pretty much new to Stata and wanted ask pretty simple questions that confuse me. I am working with panel data consisting of 9 countries over the period of 2000-2017. I want to do regressions including time fixed effects, country fixed effects and both country and time fixed effects. My panel setting is "xtset country_id year". I have read here that command for country fixed effects is just "xtreg y x, fe".
Is command "xtreg y x i.year, fe" controls for both country and time fixed effects? And what is the command for just time fixed effects?
Thank you for your help, Sergey Medvedev
Related Posts with Country and time fixed effects
Adding duplicates togetherI have two data sets. data set a with group level data for variables x, y, and group_id. data set …
Joint correspondence analysisWhat do the dimensions in joint correspondence analysis indicate? …
Regressor not found in a loop with existing variable.Hello, I am trying to run this loop to generate F* variables. When I run the loop it stops because i…
mergehi. i am very confusing in paper code , there are adj_price.dta that data have few data, therefore w…
Randomly generating new list of room mates and room numbers from an existing listHello, I have a data set with 3 columns that has pairs of roommates with their current room number.…
Subscribe to:
Post Comments (Atom)
0 Response to Country and time fixed effects
Post a Comment