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.

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

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 843 views
  • 2 likes
  • 2 in conversation