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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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