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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 592 views
  • 0 likes
  • 2 in conversation