Skip to content
Prev 165229 / 398506 Next

How to write a Surv object to a csv-file?

On Fri, 19 Dec 2008, Heinz Tuechler wrote:

            
Heinz,

Is this good enough?
X soa.time soa.status char1
1 1        1          0     1
2 2        2          0     2
3 3        3          1     3
4 4        4          0     4
5 5        5          1     5
The bug seems to be in as.matrix.data.frame.

HTH,

Chuck
Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901