Morning,
We do not have much experience with PROC QLIM but needed to use it to get a Mills ratio. Our dependent variable has 2 values (0,1) and here is our code.
proc qlim data= &indata. ;
model MA_ENROLL = <list of variables> / discrete(d=normal);
output out=in.prob_enroll_&indata. marginal mills prob xbeta;
run;
The results of this model are:
We did the same using PROC Logistic -- for which we are very familiar. We got the same results for the dependent variable = 1. But got 1-p results for dependent variable = 0. And these results are more expected given the data.
So it appears the the above table from QLIM (peach color cell) is the probability of the dependent variable being 0 for observations when the dependent variable is 0. And not the probability of the dependent variable being 1 for observations when the dependent variable is 0.
Thanks in advance for help.
I forgot to include the logistic results for comparison.
It might not hurt to provide the Proc Logistic Code as well.
You might test your hypothesis by changing the reference value in proc logistic.
PROC LOGISTIC models the probability of the first sorted response level by default, which means 0 for a 0/1 response variable. I believe QLIM expects a 0/1 response variable and always models the probability of 1. If you can to model the probability of 1 in PROC LOGISTIC, specify the EVENT="1" response option: model y(event="1") = ...
Try the PROBALL option in the OUTPUT statement instead of the PROB option. One of the two resulting columns should match the predicted probabilities output by PROC LOGISTIC.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.