I really need help! I am working with panel data for 8 years and am trying to get Stata to count the total number of no's indicated after the first yes indication. My data is in long form, so it looks like this:
1999 No
2001 No
2003 Yes
2005 No
2007 Yes
2009 No
2011 No
2013 No
In the example above, there are 4 no's after the first yes, but I can only get Stata to recognize the first no after the first yes.
1999 No
2001 No
2003 Yes
2005 No
2007 Yes
2009 No
2011 No
2013 No
In the example above, there are 4 no's after the first yes, but I can only get Stata to recognize the first no after the first yes.
Comment