[R] Frailty and tt terms in coxph
Christos Argyropoulos
cargyropoulos at unm.edu
Wed Nov 5 00:46:16 CET 2014
Dear all,
I am receiving the following error when trying to include both tt (time transforms) and frailty terms in coxph
> coxph(Surv(time, status) ~ ph.ecog + tt(age)+cluster(sex), data=lung,
+ tt=function(x,t,...) pspline(x + t/365.25))
Error in residuals.coxph(fit2, type = "dfbeta", collapse = cluster, weighted = TRUE) :
Wrong length for 'collapse'
I tried both 64 bit (R.3.1.0) and 32 bit (R.3.1.2) in Windows 7 64bit and get the same errors
Inclusion of tt and cluster terms worked fine in R2.9.2-2.15.1 under Windows Vista 32 bit and Ubuntu 64 bit
Any ideas?
Christos Argyropoulos
Assistant Professor of Nephrology,
Department of Internal Medicine
University of New Mexico School of Medicine
[[alternative HTML version deleted]]
More information about the R-help
mailing list