[R] survreg() with frailty

From: Dimitris Rizopoulos <dimitris.rizopoulos_at_med.kuleuven.be>
Date: Thu, 17 Apr 2008 14:59:38 +0200


Dear R-users,

I have noticed small discrepencies in the reported estimate of the variance of the frailty by the print method for survreg() and the 'theta' component included in the object fit:

# Examples in R-2.6.2 for Windows

library(survival) # version 2.34-1 (2008-03-31)

# discrepancy

fit1 <- survreg(Surv(time, status) ~ rx + frailty(litter), rats) fit1
fit1$history[[1]]$theta

# OK

fit2 <- survreg(Surv(time, status) ~ rx + frailty(litter, df = 13), rats)
fit2
fit2$history[[1]]$theta

# discrepancy

fit3 <- survreg(Surv(time, status)~ age + sex + frailty(id), kidney) fit3
fit3$history[[1]]$theta

# OK

fit4 <- survreg(Surv(time, status)~ age + frailty(id), kidney) fit4
fit4$history[[1]]$theta

Am I missing something? Thanks in advance for any pointers!

Best,
Dimitris



Dimitris Rizopoulos
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium

Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 17 Apr 2008 - 13:03:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Apr 2008 - 14:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive