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.
A good time to read the introductory part of the SAS/STAT documentation.
I think of PHREG (proportional hazards regression) as a tool for survival analysis or censored data regression, while REG is a tool for linear regression with normal errors that has a lot of diagnostic tools for examining things like collinearity or influence.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.