Hi, I am working on a large data set for my thesis and need help with stratified random sampling within groups. Data set has client variable grouped as Female case, Male_cases, Female_control and Male_control. I want to select all the male and female cases but for the control group I want to match 4 controls on age and race, for each case. i.e. I want to match 4 Female_controls for each Female_case and 4 Male_controls for each Male_case. ID Client Race Age Hospitals ID Services 1 Female_cases Black 45 000152 PS 2 Male_cases White 34 000121 HS 3 Female_control Asian 50 000542 HS 4 Male_control White 44 000199 HS I want to add that I am using SAS university Edition.
... View more