I've been asked to conduct a linear probability fixed effects analysis of children in panel data. There are three waves of data and it was suggested that the sample of children to be analysed are those who appear in the first wave and at least one other wave (wave two or three or two and three).
I understand technically how to do this, as below:
So I've created a sample of children who appear in at least 2 waves and analyse this sample in several regressions; for waves 1, 2 and 3, waves 1 and 2, waves 2 and 3 and waves 1 and 3 by dropping the below as necessary.
Here the sample is children in wave 1 and at least one other wave and no-one new joins the data after recruitment into wave 1. But, what I want to know is, in a linear probability fixed effects model, are children still contributing to the analysis even when they appear in only one wave?
So if I have a child who appears in wave 1 and 3 and I analyse wave 1 and 2 (by dropping wave 3 as above before running my regression), according to the sample inclusion rules this child will still be included in the analysis:
- as above
but will they be dropped from the regression? Or will their wave 1 data still be included in the analysis and in what way?
i.e. in a random effects model even if people drop out they provide a cohort effect, is the linear probability model doing likewise here?
I am very confused,
Thank you
Jack
I understand technically how to do this, as below:
Code:
xtreg child_hours_slept_y control_var1 control_var2 if wave1==1 & wave2==1 | wave1==1 & wave3==1 | wave1==1 & wave2==1 & wave3==1, cluster (child_location) fe robust
Code:
drop if year == 3 drop if year == 2 drop if year == 1
Here the sample is children in wave 1 and at least one other wave and no-one new joins the data after recruitment into wave 1. But, what I want to know is, in a linear probability fixed effects model, are children still contributing to the analysis even when they appear in only one wave?
So if I have a child who appears in wave 1 and 3 and I analyse wave 1 and 2 (by dropping wave 3 as above before running my regression), according to the sample inclusion rules this child will still be included in the analysis:
- as above
Code:
if wave1==1 & wave2==1 | wave1==1 & wave3==1 | wave1==1 & wave2==1 & wave3==1
i.e. in a random effects model even if people drop out they provide a cohort effect, is the linear probability model doing likewise here?
I am very confused,
Thank you
Jack
Comment