Hi!
I'm using the very helpful unique command, however I have one issue which I came accross. The command creates a new variable which is coded missing except for the first record in each group defined by the levels of the by variable. Nevertheless, I don't want the missing values but the same value which is created for the first record in each group.
The code I used was:
I'm using the very helpful unique command, however I have one issue which I came accross. The command creates a new variable which is coded missing except for the first record in each group defined by the levels of the by variable. Nevertheless, I don't want the missing values but the same value which is created for the first record in each group.
The code I used was:
Code:
unique aanbodid3, by(kokpc_41)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float aanbodid3 int kokpc_41 204230 26 157300 26 179122 26 178531 38 179290 38 179293 38 179289 38 161012 611 29566 1003 29127 1003 29562 1003 29136 1003 29565 1003 29557 1003 29564 1003 29135 1003 29560 1003 29561 1003 29137 1003 end
Comment