Hello friends,
I am trying to do PSM with the following code:
proc psmatch data=Data_1 region=treated;
class frail age_cat sex race insurance diabetes hypertension;
psmodel frail (Treated='1')=age_cat sex race insurance diabetes hypertension;
match method=greedy(k=1) distance=lps caliper=0.25;
assess ps var=(age_cat sex race insurance diabetes hypertension)/ plots=all weight=none;
output out(obs=match)=matched matchid=_MatchID;
run;
However, in the matching, race and insurance were automatically excluded. Race and insurance has more than two categories. So, in PS MATCH, I can only add dichotomous variables?
Thank you all!
Rube
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!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.