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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 2681 views
  • 1 like
  • 2 in conversation