Hi all,
I'm currently working on a school-month panel dataset with some data about individual courses in those schools. The way we received the data, the dates are mostly consistent and comprehensive, but there are some random gaps that persist for each school. However, we want there to still be rows for these date gaps (within each school) and just have the course values be missing data.
Here's a small example:
I'm currently working on a school-month panel dataset with some data about individual courses in those schools. The way we received the data, the dates are mostly consistent and comprehensive, but there are some random gaps that persist for each school. However, we want there to still be rows for these date gaps (within each school) and just have the course values be missing data.
Here's a small example:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str11 Schools byte(Math Science Engineering) int Date "Millerville" 43 45 87 19905 "Millerville" 66 65 56 20148 "Millerville" 56 76 34 20149 "Millerville" 45 78 34 20150 "Millerville" 56 37 34 20151 "Millerville" 77 58 56 20152 "Millerville" 87 96 45 20154 "Millerville" 88 74 45 20155 "Springer" 90 64 65 19997 "Springer" 44 25 55 20179 "Springer" 54 64 15 20180 "Springer" 54 78 26 20181 "Springer" 34 65 37 20182 "Allston" 65 45 36 20089 "Allston" 52 29 75 20120 "Allston" 23 64 86 20209 "Allston" 53 78 45 20240 "Allston" 86 93 75 20270 "Allston" 57 47 45 20301 "Phoenix" 45 45 34 20089 "Phoenix" 34 23 99 20240 "Phoenix" 66 54 34 20270 "Phoenix" 45 78 54 20301 "Phoenix" 96 44 46 20332 "Phoenix" 46 75 65 20362 end format %tdnn/dd/CCYY Date
Comment