Programming the statistical procedures from SAS

Selecting comparable populations

Reply
Occasional Contributor
Posts: 15

Selecting comparable populations

I need to create a control group that has the same characteristics as the target population. I used the following:
PROC SURVEYSELECT DATA=HOME.F0468_MOMS OUT=MOMSAMPL METHOD=SRS SAMPRATE=.5 SEED=2;
STRATA TARGCONT MOMAGE GRAVIDITY FPLGR SMOKE MED_RSK LOWWT BMI MARSTAT;
RUN;
However, this is code from a different programmer and I don't really know what it's doing. TARGCONT is the flag that distinguishes Target and Control groups.
Is there a better method? Is there anything I should adjust? Thanks
Contributor
Posts: 20

Re: Selecting comparable populations

This code is taking a simple random sample (method=srs) of 1/2 (samprate=.5) of each strata from the HOME.F0468_MOMS data set and saving the sample as MOMSAMPL. The strata are defined by TARGCONT MOMAGE GRAVIDITY FPLGR SMOKE MED_RSK LOWWT BMI MARSTAT. That is, each stratum is a unique combination of values for the 9 variables listed in the strata statement.

It is odd that TARGCONT is part of the strata statement as this makes it appear as if the target and control groups have already been assigned. Your description of the intended purpose makes me think you may want to remove TARGCONT from the strata statement and then assign the chosen sample to the control group.
Occasional Contributor
Posts: 15

Re: Selecting comparable populations

Yes, targcont has been taken out of the STRATA. The target group has already been defined - I'm trying to find a control group with the same characteristics. As I learn more about this PROC I doubt this is what I want to use, but it has been interesting. Thanks.
Ask a Question
Discussion stats
  • 2 replies
  • 103 views
  • 0 likes
  • 2 in conversation