[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: balanced sub-panel to test for selection bias
sacrificial toaster oven
I have unbalanced panel data (unequal time series for
observations, but no
Dataset contains variables on farms from 1980 to 1996.
Not all years are
present for each farm.
I would like to test it for selection bias by means of
Therefore if I understand correctly I have to obtain
two models: balanced
My question is how can I obtain balanced sub-panel in
egen nfarm = count(farm),by(year)
summarize nfarm, meanonly
by year: keep if nfarm == `r(max)'
Kit Baum, Boston College Economics and DIW Berlin
An Introduction to Modern Econometrics Using Stata:
* For searches and help try: