Help using Base SAS procedures

PHREG Vs PROC REG

Reply
Frequent Contributor
Posts: 92

PHREG Vs PROC REG

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.

Trusted Advisor
Posts: 1,228

Re: PHREG Vs PROC REG

What is your dependent variable?

Frequent Contributor
Posts: 92

Re: PHREG Vs PROC REG

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

as the respective dependent varaible.

Trusted Advisor
Posts: 1,228

Re: PHREG Vs PROC REG

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

Super User
Posts: 19,865

Re: PHREG Vs PROC REG

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

Ask a Question
Discussion stats
  • 4 replies
  • 255 views
  • 0 likes
  • 3 in conversation