[R] cluster + tt terms in coxph

Henric Winell nilsson.henric at gmail.com
Thu Nov 6 12:59:59 CET 2014


On 2014-11-05 14:50, Therneau, Terry M., Ph.D. wrote:

> This is fixed in version 2.37-8 of the survival package, which has been
> in my "send to CRAN real-soon-now" queue for 6 months.  Your note is a
> prod to get it done.  I've been updating and adding vignettes.

Is your fixed code publicly available somewhere?  (The 'survival' 
repository at R-forge doesn't seem to have been updated since January.)

Henric Winell


>
> Terry Therneau
>
>
> On 11/05/2014 05:00 AM, r-help-request at r-project.org wrote:
>> 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?
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list