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
Creating a dummmy variableI have panel data for 850 companies between 2001 and 2019. In case a company had revenue < USD 10…
Running xtreg for a data subset (subset defined by a floating variable)Hi, I have panel data for 850 companies for years 2001-2019. I have created a floating variable to …
IRT 2PL not replicable across Stata 16 MP on Linux vs Stata 16.1 IC on a PCHi everyone, Also posted here. The subject says it all: Results from Stata's internal -irt 2PL- com…
Proportions variableI am working with panel data and am trying to create a new proportional variable defined as the numb…
Vertical Dot Plot with whiskersHello Stata users- I'm a new Stata user and was looking for some advise. I'm trying to create a vert…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data, Stata omits i.Year dummies due to collinearity
Post a Comment