Hi Stata users,
I am working with data extracted from a database where some values are missing as shown in example below
Is there a way I can fill the values such that the ID for observations 2 and 3 is 1000, observations 6, 7 and 8 is 2000 etc.
Thanks in advance!
I am working with data extracted from a database where some values are missing as shown in example below
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int(id code) byte value 1000 101 34 . 102 56 . 105 96 2000 100 29 . 101 36 . 102 81 . 103 34 3000 101 46 . 102 38 . 103 78 . 104 45 . 105 71 . 106 76 end
Thanks in advance!
Comment