Hi,
I am working with an unbalanced panel dataset consisting of 4 panels of a 4 year duration each (1995-1998, 1996-1999, 1997-2000, 1998-2001) and I observe every person (per panel) for 4 consecutive years. I would like to create year dummies to control for things that might change from one survey year to the next.
I did:
gen year1995=0
replace year1995=1 if yearofsurvey==1995
gen year1996=0
replace year1996=1 if yearofsurvey==1996
.
.
.
.
gen year2001=0
replace year2001=1 if yearofsurvey==2001
My question is firstly whether the way I created the year dummies is correct and secondly whether I also have to create Panel dummies for the 4 different panels I appended together so as to control for things that may differ from one panel to the other or whether the year dummies and the randomness of the individuals chosen into the various panels already control for these.
Many thanks in advance
I am working with an unbalanced panel dataset consisting of 4 panels of a 4 year duration each (1995-1998, 1996-1999, 1997-2000, 1998-2001) and I observe every person (per panel) for 4 consecutive years. I would like to create year dummies to control for things that might change from one survey year to the next.
I did:
gen year1995=0
replace year1995=1 if yearofsurvey==1995
gen year1996=0
replace year1996=1 if yearofsurvey==1996
.
.
.
.
gen year2001=0
replace year2001=1 if yearofsurvey==2001
My question is firstly whether the way I created the year dummies is correct and secondly whether I also have to create Panel dummies for the 4 different panels I appended together so as to control for things that may differ from one panel to the other or whether the year dummies and the randomness of the individuals chosen into the various panels already control for these.
Many thanks in advance
Comment