Hi all,
I am fairly new to Stata and I ran into a problem with my panel data set. My data set consists of multiple countries with each including the same 7 industries over a time period of 2010-2017. My supervisor advised me to use time dummies so I did using the i.Year function. Now my problem, when I run the code [by Country, sort : xtreg BERD FDIinflow GDPPCG Enterprises Turnover Educationlvl ULC Inflation i.Year, fe] I get the note that Stata omits variable i.2015 or other i.Years varying across countries due to collinearity. I don't get why Stata does this and if this affects the validity of my database. If i run xtreg and don't do it by country, so the whole dataset, I get an r² that is almost zero.
Thanks in advance and my apologies if I didn't make things clear or let me know if i should include any attachments!
Array
(Using Stata 16.0)
Related Posts with Panel data, Stata omits i.Year dummies due to collinearity
combining two graphsHello, Is there a way to combine the scatter plot with the fitted line from the regression with an …
Applying the Mundlak approach in 3-level hierarchical model. Which is the correct mean of a level-2 variable?Hello! We have a question about implementing the ‘Mundlak’ approach in a multilevel (3-levels) nest…
sureg with fixed effects and clustered errorsI want to estimate a system of 4 equations, where the Y-Variables sum to one approximately, and so t…
Error exporting dataset to excel using foreach loopHello, I am trying to export data set to excel using foreach loop in STATA 13.1. But the stata throw…
Puzzling Post Hoc Power CalculationI was trying to show a colleague that post hoc power calculations are nonsensical with the following…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data, Stata omits i.Year dummies due to collinearity
Post a Comment