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
CMP + eregressDear Statalists, I am using Stata 15, the eregress package and the cmp package. The following is th…
Extracting two dates. HELP !I have observations where the data was saved as csv files and now loaded into stata. There is the 1)…
Difference-in-Differences reg vs xtregDear all, I read through many discussions concerning difference in differences analyses but have no…
Make margins postestimation run faster? Manual calculation for margins and 95% CI?I am running mixed effects/multilevel analyses on a very complex, very large dataset and I've notice…
Need suggestion to improve coefficient valuesI run fixed effect regression my dependent variable in index value 0 to 1 while independent variable…
Subscribe to:
Post Comments (Atom)
0 Response to Country and time fixed effects
Post a Comment