BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ramin1
Obsidian | Level 7

Hi Experts, I want to run a regression by using the following models.

 

Ramin1_0-1639523734537.png

I use the following code to get predicted values, but I figure out that this is not similar to the process of proc surveyreg. The predicted value (OC^) in the above equation 3 is the binary variable either 1 or 0.

I try to use similar code which I use for Proc Suveyreg to get residual and predicted values.

Proc surveylogistic data=test;
cluster gvkey;
class industry fyear;
model OC=age control_variables industry year;
output out=test1 p=predicted;
run;

I get the estimated probability, I am not sure how to get the predicted values for OC in the above equation 2.

1 ACCEPTED SOLUTION
2 REPLIES 2
pink_poodle
Barite | Level 11

The displayed output for this procedure can be found here:

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveylogistic_details66.htm...

You can chose the output tables with corresponding syntax.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 420 views
  • 2 likes
  • 2 in conversation