Hi Experts, I want to run a regression by using the following models.
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.
Thanks for your reply @pink_poodle . I got my answer in the following link...
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_logistic_examples01.htm
The displayed output for this procedure can be found here:
You can chose the output tables with corresponding syntax.
Thanks for your reply @pink_poodle . I got my answer in the following link...
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_logistic_examples01.htm
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.