write.pbat {pbatR}R Documentation

Saving 'pbat' Object

Description

Writes a `pbat' object (the result of calling pbat.m) to disk.

Usage

write.pbat( x, filename )
write.pbat.csv( x, filename )

Arguments

x Object of class pbat.
filename Filename to save to.

Details

With write.pbat, a text file is written out with an `&' symbol delimiting the output section. Both the calling and results section are preserved. If the file has the `.csv' extension, then write.pbat.csv is called.

With write.pbat.csv, the text file is of the standard `csv' format to delimit the text file. This should be readable with any spreadsheet program. Note that to use the R output (for the logrank plots), you should open the file in a spreadsheet program and just copy and paste it into R.

References

http://www.biostat.harvard.edu/~clange/default.htm

http://www.people.fas.harvard.edu/~tjhoffm/pbatR.html


[Package pbatR version 1.1 Index]