Skip to content
Prev 311331 / 398513 Next

survfit & number of variables != number of variable names

On Nov 19, 2012, at 5:33 PM, Georges Dupret wrote:

            
I found it but I suspect nobody else will. I think Terry Therneau already got a copy. when you attached it earlier. But the rest of Rhelp did not, since .gz files will get scrubbed by the list-serv.
All of your 'censored' were FALSE so all of your events were TRUE. My guess is that you are having problems because you end up with different model designs in the different strata:
today
activity         FALSE TRUE
  (100,121]          1   13
  (121,149]          2    8
  (149,196]          0    4
  (196,1.33e+03]     1    8
  (30,42]            1    8
  (42,55]            4   12
  (55,68]            2    9
  (68,83]            2    9
  (83,100]           2    6
  [11,30]            0    8


I do not think it matters that you levels for the factor variable will not be in the expected order:

table(small$activity)

     (100,121]      (121,149]      (149,196] (196,1.33e+03]        (30,42]        (42,55]        (55,68]        (68,83] 
            14             10              4              9              9             16             11             11 
      (83,100]        [11,30] 
             8              8 


But I do also wonder if the small numbers in each strata might be causing problems. Is it really needed to stratify so finely?