From therne@u @ending from m@yo@edu  Thu Jun 28 00:14:42 2018
From: therne@u @ending from m@yo@edu (Therneau, Terry M., Ph.D.)
Date: Wed, 27 Jun 2018 17:14:42 -0500
Subject: [Rd] new behavior in model.response
Message-ID: <bb6fa2$9mk1q0@ironport10.mayo.edu>

I now understand the issue, which leads to a different and deeper issue which is "how to 
assign a proper length to Surv objects".

 > Surv(c(1,2,3), c(1,0,1))
[1] 1? 2+ 3

The above prints as 3 elements and is conceptually 3 elements. But if I give it length 
method to return a 3 then I need a names method, and names<-? pays no attention to my 
defined length. How do we conceive of and manage a vector whose elements happen to require 
more than one storage slot for their representation?? An obvious example is the complex 
type, but it seems that had to be baked right down into the core.



	[[alternative HTML version deleted]]



[Rd] new behavior in model.response
Therneau, Terry M., Ph.D.