BookmarkSubscribeRSS Feed
ashlicole
Obsidian | Level 7

Hi everyone, 

 

I'm trying to use frequency matching/category matching to match a set of control patients to my selected case patients. That is, rather than individual (1:n) matching, I just want my control group to have similar distributions for a selected set of covariates. I don't need a white, 50-year-old, female case patient to have another exact white, 50-yr-old, female control patient -- I just want to be sure that if 50% of my cases are white, 20% are 50-year-olds, and 55% are female, those respective distributions are similar in the control group. Is there a straightforward way to match this way in SAS? I have done 1:n matching using PROC SURVEYSELECT, but I haven't been able to find any examples of performing frequency matching. 

 

Any help would be greatly appreciated!

Thanks! 

1 REPLY 1
snoopy369
Barite | Level 11

 

Control sorting in PROC SURVEYSELECT would get you a match to the population frequency, if your population has the right size.

 

STRATA would let you select certain numbers in each stratum, but it sounds like you're really not going for that detail (that would be 1:N).

 

You could use pre-sampling weights perhaps with the SIZE option in SURVEYSELECT, to weight your control population to match the demographics of your experimental group?

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2898 views
  • 1 like
  • 2 in conversation