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
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!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: