Group T Status              Dear R users. I am trying to program the comp()
routine in package survMisc.

   1 2081 0                      I am reading the data on the left with
d=read.table( "C:\\e.t.c",fill=TRUE,header=TRUE)
   1 1602 0                     Then I load the packages 'survival' and
'survMisc', library(survival), library(survMisc)
   1 1496 0                     and I run the commands
   1 1462 0                                      s=survfit(Surv(d[,2],
d[,3])~d[,1], data=d)
   1 1433 0                                      comp(s)

   1 1377 0                     and I am getting the error
   1 1330 0                                       Error in get(t1, loc1) :
object 'd[, 2]' not found
   1  996 0                     If instead I use the commands
   1  226 0                                        s=survfit(Surv(T,
Status)~Group, data=d)
   1 1199 0                                       comp(s)

   1 1111 0                    routine comp()  runs perfectly. However when
I am programing I can't see a way to know
   1  530 0                     in advance the variable names in order to
use them.
   1 1182 0                    Can anybody  give me a suggestion?
   1 1167 0                     Thanks in advance
   1  418 1                       Endy

   1  383 1
   1  276 1
   1  104 1
   1  609 1
   1  172 1

   1  487 1
   1  662 1
   1  194 1
   1  230 1
   1  526 1

   1  122 1
   1  129 1
   1   74 1
   1  122 1
   1   86 1

   1  466 1
   1  192 1
   1  109 1
   1   55 1
   1    1 1

   1  107 1
   1  110 1
   1  332 1
   2 2569 0
   2 2506 0

   2 2409 0
   2 2218 0
   2 1857 0
   2 1829 0
   2 1562 0

   2 1470 0
   2 1363 0
   2 1030 0
   2  860 0
   2 1258 0

   2 2246 0
   2 1870 0
   2 1799 0
   2 1709 0
   2 1674 0

   2 1568 0
   2 1527 0
   2 1324 0
   2  957 0
   2  932 0

   2  847 0
   2  848 0
   2 1850 0
   2 1843 0
   2 1535 0

   2 1447 0
   2 1384 0
   2  414 1
   2 2204 1
   2 1063 1

   2  481 1
   2  105 1
   2  641 1
   2  390 1
   2  288 1

   2  421 1
   2   79 1
   2  748 1
   2  486 1
   2   48 1

   2  272 1
   2 1074 1
   2  381 1
   2   10 1
   2   53 1

   2   80 1
   2   35 1
   2  248 1
   2  704 1
   2  211 1

   2  219 1

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to