Statalist,
I am working with the following longitudinal panel data and need to create a dummy for units that code as 1 for each unit only if it has all the values between 0 and 10 for the variable TImeSeries. Because I have units with only 0-6 or 0-8, not the full range of 0-10, using -inlist- or -cond()- have left me with a dummy (i.e. Ten below) that codes units that do not have the complete range from 0-10 as 1. Any suggestions would be greatly appreciated. - Jenny
FIPS year TimeSeries Ten
54107 2010 0 1
54107 2011 1 1
54107 2012 2 1
54107 2013 3 1
54107 2014 4 1
54107 2015 5 1
54107 2016 6 1
I am working with the following longitudinal panel data and need to create a dummy for units that code as 1 for each unit only if it has all the values between 0 and 10 for the variable TImeSeries. Because I have units with only 0-6 or 0-8, not the full range of 0-10, using -inlist- or -cond()- have left me with a dummy (i.e. Ten below) that codes units that do not have the complete range from 0-10 as 1. Any suggestions would be greatly appreciated. - Jenny
FIPS year TimeSeries Ten
54107 2010 0 1
54107 2011 1 1
54107 2012 2 1
54107 2013 3 1
54107 2014 4 1
54107 2015 5 1
54107 2016 6 1
Comment