Hi there Statalist. I have panel data and am trying to produce a list of IDs that have at least one wave with complete (i.e., no missing) data for var1 and var2 and var3. So in this below data example, id1 and id3 would both be tagged because id1 has no missingness on those vars in wave 3, and id3 has no missingness in waves 1 and 3. Ideally this would get tagged in a way that lets me use -browse- to copy this list of IDs (which will be in the thousands in my real data).
Code:
clear all input id wave var1 var2 var3 1 1 1 . 1 1 2 0 1 . 1 3 0 1 0 2 1 0 1 . 2 2 . . 1 2 3 1 0 . 3 1 1 0 1 3 2 . 0 1 3 3 2 0 2 end
Comment