Hi, My name is Shane and i am an MSc Economics student. I have recently joined this forum so apologies in advance if i accidentally break any of the rules.
I am currently doing my dissertation and have come across an issue with Stata. My dataset is a 4 year panel dataset of university tuition fees and their characteristics. There are 5 dummy variables which are fixed over the 4 years. Naturally, when using a fixed effect regression, stata will of course eliminate these as they are fixed overtime. However these dummies are crucial. I have been advised by my supervisor to run it as a cross section, not panel but instead put time dummies in them. i.e Year2016, Year2015, Year2014 etc.
Unfortunately, i created Year2016, Year2015, Year2014 and Year2013. and included Year2016, Year2015, Year2014 in the regression to avoid multicolleanrty problem, but it comes up with the "no observation" error but there are data available so i'm baffled as to what the issue is.
Thanks for reading this.
Shane
That's how i have created the dummies. There are 4 years in the dataset, 2016, 2015, 2014 and 2013
gen Year2016=1 if year==2016
replace Year2016=0 if year==2015
gen Year2015=1 if year==2015
replace Year2015=0 if year==2014
gen Year2014=1 if year==2014
replace Year2014=0 if year==2013
gen Year2013=1 if year==2013
replace Year2013=0 if year==2014
I am currently doing my dissertation and have come across an issue with Stata. My dataset is a 4 year panel dataset of university tuition fees and their characteristics. There are 5 dummy variables which are fixed over the 4 years. Naturally, when using a fixed effect regression, stata will of course eliminate these as they are fixed overtime. However these dummies are crucial. I have been advised by my supervisor to run it as a cross section, not panel but instead put time dummies in them. i.e Year2016, Year2015, Year2014 etc.
Unfortunately, i created Year2016, Year2015, Year2014 and Year2013. and included Year2016, Year2015, Year2014 in the regression to avoid multicolleanrty problem, but it comes up with the "no observation" error but there are data available so i'm baffled as to what the issue is.
Thanks for reading this.
Shane
That's how i have created the dummies. There are 4 years in the dataset, 2016, 2015, 2014 and 2013
gen Year2016=1 if year==2016
replace Year2016=0 if year==2015
gen Year2015=1 if year==2015
replace Year2015=0 if year==2014
gen Year2014=1 if year==2014
replace Year2014=0 if year==2013
gen Year2013=1 if year==2013
replace Year2013=0 if year==2014
Comment