intomarketing
10-20-2008, 01:00 PM
I'm new to SAS (and programming in general) so I was hoping someone could help me out.
I have a ridiculously large data set I am analyzing, and I wanted to pare it down a bit... so I know what I need to do, just not how.
First, there is a subject ID variable. It is in one of the following formats:
12345678
12345678.123
12345678.123.123
I am only interested in the subjects with 8 digit codes, so how could I create a dataset that drops the other two types?
Second, there are a string of variables for a mental test, I only want subjects that actually took the test on all administrations of it, so is there some method to keep records that have data in all of the variables and drop the rest?
thanks for any help!
I have a ridiculously large data set I am analyzing, and I wanted to pare it down a bit... so I know what I need to do, just not how.
First, there is a subject ID variable. It is in one of the following formats:
12345678
12345678.123
12345678.123.123
I am only interested in the subjects with 8 digit codes, so how could I create a dataset that drops the other two types?
Second, there are a string of variables for a mental test, I only want subjects that actually took the test on all administrations of it, so is there some method to keep records that have data in all of the variables and drop the rest?
thanks for any help!