Hi All,
I know this might sound an easy and new beginners questions however while i was working on multiple linear regression model i wanted to check the residuals and to create a graph for the same. During research I found both phreg and prog reg can be handy in doing so with some keywords added.
However I am a bit confused - what is the situation where i could use phreg and not proc reg and vice versa and both can be used.
Kindly advice.
What is your dependent variable?
I have2 models where 1 has milegae and the other has houseprice
as the respective dependent varaible.
Try proc reg/proc glm, proc phreg was designed to do Cox regression analysis of continuous-time survival data.
Proc Phreg is for Survival analysis, when you have censored data.
Proc Reg is for regression analysis. If you want alternatives to Proc Reg consider Proc GLM.
I'd suggest mentioning the type of analysis you wanted to do and then looking at the type of procs that are appropriate.
This may help:
Choosing the Correct Statistical Test in SAS, Stata and SPSS
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.