hi all,
I have a dataset with multiple subjects, and each subjects have multiple entries. Now I need to select a subset of subjects and all entries of each selected subject will be kept in my output.
Eg, I have the 'subject' variable in the original dataset look like:
1111 2 2 2 3 3 4444 555555
If I need to get 2 random subjects and their corresponding entries in the output file, say subject 1 and 4, then the output file should have the 'subject' variable with
1111 4444.
How can I achieve it in SAS? Thanks!