
## 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="", \dots) # 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="", \dots) # ols fit
## S3 method for class 'orm':
latex(object, title, file, append, which, varnames,
columns, inline, before, after, pretrans, caption,
digits=.Options$digits, size="", intercepts=nrp < 10, \dots) # for lrm fit
## S3 method for class 'pphsm':
latex(object, title, file, append, which=NULL, varnames,
columns, inline, before, after, pretrans, caption,
digits=.Options$digits, size="", \dots) # 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="", \dots) # psm fit
rms
fitting function.latex.default
surv=TRUE
was specified to cph
, the underlying survival
probabilities from object$surv.summary
will be placed in a table
unless surv=FALSE
.object$maxtime
) exceeds the
last entry in object$surv.summary
, underlying survival estimates at
object$maxtime
will be added to the table if maxt=TRUE
.latex.default
inline=TRUE
orm
fits. Default is to print intercepts
if they are fewer than 10 in number. Set to TRUE
or
FALSE
to force.c("latex","file")
. This
object works with latex viewing and printing commands in Hmisc.latexrms
, rcspline.restate
,
latex
units(ftime) <- "Day"
f <- cph(Srv(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
Run the code above in your browser using DataLab