BookmarkSubscribeRSS Feed
Shivi82
Quartz | Level 8

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.

4 REPLIES 4
stat_sas
Ammonite | Level 13

What is your dependent variable?

Shivi82
Quartz | Level 8

I have2  models where 1 has milegae and the other has houseprice

as the respective dependent varaible.

stat_sas
Ammonite | Level 13

Try proc reg/proc glm, proc phreg was designed to do Cox regression analysis of continuous-time survival data.

Reeza
Super User

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

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

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 1763 views
  • 0 likes
  • 3 in conversation