Hi everyone,
I have a tricky question regarding the way xtreg works.
Using a balanced Panel Data with 10 observations per id, I want to use option if after regression command in xtreg, fe to use only observation with specific criteria.
The problem is - not all the ids have this criteria, eg.:
xtreg x z if z == "yes", fe robust
id | time | z
1 | 2000 | yes
1 | 2001 | yes
1 | 2002 | no
2 | 2000 | yes
2 | 2001 | no
2 | 2002 | yes
First, I assumed that xtreg would automatically dismiss all the ids with missing values, but then realised that since the observations are not missing, but excluded manually this may actually manually unbalance my panel and bias the results. On the other hand the x-values are already within values and therefore the results should correctly describe the regression for case in which z == "yes". Im confused.
So does it unbalance my panel or not and I can still safely use xtreg?
Thank you in advance
Alexandra
I have a tricky question regarding the way xtreg works.
Using a balanced Panel Data with 10 observations per id, I want to use option if after regression command in xtreg, fe to use only observation with specific criteria.
The problem is - not all the ids have this criteria, eg.:
xtreg x z if z == "yes", fe robust
id | time | z
1 | 2000 | yes
1 | 2001 | yes
1 | 2002 | no
2 | 2000 | yes
2 | 2001 | no
2 | 2002 | yes
First, I assumed that xtreg would automatically dismiss all the ids with missing values, but then realised that since the observations are not missing, but excluded manually this may actually manually unbalance my panel and bias the results. On the other hand the x-values are already within values and therefore the results should correctly describe the regression for case in which z == "yes". Im confused.
So does it unbalance my panel or not and I can still safely use xtreg?
Thank you in advance
Alexandra
Comment