[R] survreg() provides same results with different distirbutions for left censored data
tlumley at uw.edu
Fri Dec 9 01:25:46 CET 2011
On Thu, Dec 8, 2011 at 3:55 AM, ifejobi <ifejobi at gmail.com> wrote:
> I'm working with some left censored survival data using accelerated failure
> time models. I am interested in fitting different distributions to the data
> but seem to be getting the same results from the model fit using survreg
> regardless of the assumed distribution.
> These two codes seem to provide the same results:
> aft.gaussian <- summary(survreg(Surv(y,y>0),type="left")~
> aft.weibull <- summary(survreg(Surv(y,y>0),type="left")~
That's because you're fitting the same model: the dist= argument needs
to be inside the parentheses for survreg().
Professor of Biostatistics
University of Auckland
More information about the R-help