Skip to content
Prev 55388 / 63424 Next

new behavior in model.response

On Thu, 28 Jun 2018, Therneau, Terry M., Ph.D. via R-devel wrote:

            
I think you just have to implement all methods required to make it look 
like a vector even if it is internally a matrix. Thus, you need methods 
for length and for names and names<-. Internally, the names can be stored 
as row names.

Further useful methods for "Surv" objects might include 
- as.double/as.integer (presumably just extracting the "time"),
- c
- str

Possibly also a dedicated summary.

An example for such a class is our "paircomp" in "psychotools". But I'm 
sure there are other/better examples elsewhere.

Best,
Achim