Hello,
I want to drop missing values in a variable, but only if the variable is missing for all years (2000-2013).
In this case, I want to drop the missing values seen with 2-223 between 2000 and 2013, but what we see in 2-225 between 2000 and 2013 (or 2008 seen here) is okay.
I tried to play around with the drop in range codes, but can't seem to put my head around how to make a working code for this particular range.
I want to drop missing values in a variable, but only if the variable is missing for all years (2000-2013).
Code:
input double ccode1 float(ccode2 year) long pending_beginning 2 223 2000 . 2 223 2001 . 2 223 2002 . 2 223 2003 . 2 223 2004 . 2 223 2005 . 2 223 2006 . 2 223 2007 . 2 223 2008 . 2 223 2009 . 2 223 2010 . 2 223 2011 . 2 223 2012 . 2 223 2013 . 2 225 2000 1 2 225 2001 1 2 225 2002 1 2 225 2003 1 2 225 2004 1 2 225 2005 0 2 225 2006 0 2 225 2007 . 2 225 2008 0
I tried to play around with the drop in range codes, but can't seem to put my head around how to make a working code for this particular range.
Comment