From ramseyd at landcareresearch.co.nz  Mon May 24 05:01:21 2004
From: ramseyd at landcareresearch.co.nz (ramseyd@landcareresearch.co.nz)
Date: Mon May 24 05:01:23 2004
Subject: [Rd] bug in extractAIC.survreg (PR#6910)
Message-ID: <20040524030121.E94B410559@slim.kubism.ku.dk>

Full_Name: Dave Ramsey
Version: 1.8.0
OS: win2000
Submission from: (NULL) (202.27.240.6)


there is a bug in extractAIC.survreg in library MASS.

A survreg model object has no component called "residuals".  Hence  

n <- length(fit$residuals)

returns 0 resulting in errors 

workaround:   replace 

n <- length(fit$residuals)

with

n <- length(residuals(fit))

### sorry: error in my email address on previous posting


[Rd] bug in extractAIC.survreg (PR#6910)
ramseyd@landcareresearch.co.nz