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;
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
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.
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.