Hi Statalist -- I have data that looks like this:
I want to drop id #10489 because it has missing on all 4 rows, but want to keep id #12345 and all of its rows because it has a 1 on the variable math class and switch it's missing values to be 0. I've been reading up on the collapse command, but still unclear about what the appropriate procedure would be. Any help is greatly appreciated!
id | math class |
12345 | . |
12345 | . |
12345 | 1 |
10489 | . |
10489 | . |
10489 | . |
10489 | . |
Comment