BookmarkSubscribeRSS Feed
doylejm
Fluorite | Level 6
I am following the ETS/WEB example to calculate marginal effects for a probit model estimated with PROC QLIM. It is found here:

http://support.sas.com/rnd/app/examples/ets/margeff/index.html

I cut and pasted the code with data as posted on the SAS site, ran it, and didn't get the predicted values that the web page gives. Specifically, the code:

proc print data=outme2(firstobs=33);
run;

should print out predicted probabilities for the 33rd and 34th row of data, but they are missing. This is what I get:

Obs gpa tuce psi grade Meff_P1_gpa Meff_P2_gpa Meff_P1_tuce Meff_P2_tuce Meff_P1_psi Meff_P2_psi Prob1_grade Prob2_grade
33 3.117 21.938 1 . . . . . . . . .
34 3.117 21.938 0 . . . . . . . . .


it doesn't work as written. is any info on this available? thank you
1 REPLY 1
SteveDenham
Jade | Level 19
You may need to check your log. When I ran the copied code, I got a missing value for grade, but all the predicted probabilities were present.

Steve Denham
Associate Director, Biostatistics
MPI Research, Inc.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1034 views
  • 0 likes
  • 2 in conversation