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.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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