BookmarkSubscribeRSS Feed
xt_
Calcite | Level 5 xt_
Calcite | Level 5

I got the warnings when running PROC PSMATCH:

              The maximum likelihood estimates for the logistic regression model might not exist.

              The maximum likelihood estimates are based on the last maximum likelihood iteration.

 

I want to match my case and control (1:2) by age group, sex, region, number of major health conditions they have.

 

The code that I use: proc psmatch data=have region=cs;

                                 class group agegrp sex region ncond;

                                 psmodel group(treated='1') = agegrp sex region ncond;

                                 match method=greedy(k=2 order=random) stat=lps caliper=0.2;

                                 output out(obs=match)=matches mathcid=_matchid lps=_lps;

                                 run;

I tried collapsing the categories with small/zero counts and ran the PROC PSMATCH again, but it didn't work...

Also, when I ran the logistic regression model with the same variables using PROC LOGISTIC, the model was running OK without warnings.

 

Anyone knows what might cause that warning and have some suggestions? Thanks!

1 REPLY 1
MichaelL_SAS
SAS Employee

PROC PSMATCH might print that message if an error occurs during the process of fitting the propensity score model or if the optimization method fails to converge. PROC LOGISTIC is probably using a different optimization method to fit the propensity score model, which would explain why there are no warnings in that case. If you want to match on the propensity score values predicted by PROC LOGISTIC you can create an output data set with the predicted values and then use the PSDATA statement in PROC PSMATCH to specify the pre-computed propensity score values instead of using the PSMODEL statement. The eighth example in the documentation for PROC PSMATCH demonstrates how you can match on pre-computed propensity score values.

 

https://go.documentation.sas.com/?docsetId=statug&docsetTarget=statug_psmatch_examples08.htm&docsetV...

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

What is ANOVA?

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.

Discussion stats
  • 1 reply
  • 3330 views
  • 2 likes
  • 2 in conversation