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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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