| latex.cph {rms} | R Documentation |
Creates a file containing a LaTeX representation of the fitted model.
## S3 method for class 'cph'
latex(object, title,
file=paste(first.word(deparse(substitute(object))),".tex",sep=""),
append=FALSE, surv=TRUE, maxt=FALSE, which=NULL, varnames, columns=65,
inline=FALSE, before=if(inline)"" else "& &", after="", dec=3,
pretrans=TRUE, caption, digits=.Options$digits, size="", ...) # for cph fit
## S3 method for class 'lrm'
latex(object, title, file, append, which, varnames,
columns, inline, before, after, pretrans, caption,
digits=.Options$digits, size="", ...) # for lrm fit
## S3 method for class 'ols'
latex(object, title, file, append, which, varnames,
columns, inline, before, after, pretrans, caption,
digits=.Options$digits, size="", ...) # ols fit
## S3 method for class 'pphsm'
latex(object, title, file, append, which=NULL, varnames,
columns, inline, before, after, pretrans, caption,
digits=.Options$digits, size="", ...) # pphsm fit
## S3 method for class 'psm'
latex(object, title, file, append, which=NULL, varnames,
columns, inline, before, after, pretrans, caption,
digits=.Options$digits, size="", ...) # psm fit
object |
a fit object created by a |
title |
ignored |
file,append |
see |
surv |
if |
maxt |
if the maximum follow-up time in the data ( |
which,varnames,columns,inline,before,dec,pretrans |
see
|
after |
if not an empty string, added to end of markup if
|
caption |
a character string specifying a title for the equation to be centered and typeset in bold face. Default is no title. |
digits |
see latexrms |
size |
a LaTeX size to use, without the slash. Default is the prevailing size |
... |
ignored |
the name of the created file, with class c("latex","file"). This
object works with latex viewing and printing commands in Hmisc.
Frank Harrell
Department of Biostatistics, Vanderbilt University
f.harrell@vanderbilt.edu
latex.rms, rcspline.restate, latex
## Not run:
units(ftime) <- "Day"
f <- cph(Surv(ftime, death) ~ rcs(age)+sex, surv=TRUE, time.inc=60)
w <- latex(f) #Interprets fitted model and makes table of S0(t)
#for t=0,60,120,180,\dots Creates file f.tex
w #displays image, if viewer installed
latex(f,file="") # send LaTeX code to the screen
## End(Not run)