panel sample selection
Posted: Sun Jul 07, 2013 10:03 am
I'm running EV-8.
I have country-year panels. Data were imported (stacked) from stata.
Observations for one variable "Z" were recorded from two sources because each source covered different years for different countries. There are two dummy variables to indicate source - "dum1" and "dum2" For example:
country year Z dum1 dum2
3 2003 24.60 0 0
3 2004 23.50 0 0
3 2005 25.80 0 0
3 2006 24.20 0 0
3 2007 22.70 0 0
3 2008 24.70 0 1
3 2009 24.00 0 0
3 2010 24.90 0 1
3 2011 25.20 0 1
4 1995 39.80 0 0
4 1996 37.00 0 0
4 1997 36.10 0 0
4 1998 35.40 0 0
4 1999 36.10 0 0
4 2000 38.90 0 0
4 2001 38.50 0 0
4 2002 39.30 0 0
4 2003 40.20 0 0
4 2004 38.30 0 0
4 2005 36.10 0 0
4 2006 33.10 0 1
4 2007 33.40 0 1
4 2008 30.90 0 1
4 2009 31.40 0 1
4 2010 31.30 0 1
I used smpl @all if dum1=1 and retained 212 observations (Z was NA for some country-year combinations)
I unstacked the data for panel estimation & estimated a panel model. The estimation used 246 observations.
Apparently, the smpl was not inherited by the reshaped data.
Is it possible to sample by both cross-section and non-sequential observation? If so, how?
Thanks,
--Larry
I have country-year panels. Data were imported (stacked) from stata.
Observations for one variable "Z" were recorded from two sources because each source covered different years for different countries. There are two dummy variables to indicate source - "dum1" and "dum2" For example:
country year Z dum1 dum2
3 2003 24.60 0 0
3 2004 23.50 0 0
3 2005 25.80 0 0
3 2006 24.20 0 0
3 2007 22.70 0 0
3 2008 24.70 0 1
3 2009 24.00 0 0
3 2010 24.90 0 1
3 2011 25.20 0 1
4 1995 39.80 0 0
4 1996 37.00 0 0
4 1997 36.10 0 0
4 1998 35.40 0 0
4 1999 36.10 0 0
4 2000 38.90 0 0
4 2001 38.50 0 0
4 2002 39.30 0 0
4 2003 40.20 0 0
4 2004 38.30 0 0
4 2005 36.10 0 0
4 2006 33.10 0 1
4 2007 33.40 0 1
4 2008 30.90 0 1
4 2009 31.40 0 1
4 2010 31.30 0 1
I used smpl @all if dum1=1 and retained 212 observations (Z was NA for some country-year combinations)
I unstacked the data for panel estimation & estimated a panel model. The estimation used 246 observations.
Apparently, the smpl was not inherited by the reshaped data.
Is it possible to sample by both cross-section and non-sequential observation? If so, how?
Thanks,
--Larry