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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.