latex.cph(rms)
latex.cph()所属R语言包:rms
LaTeX Representation of a Fitted Cox Model
LaTeX的代表Cox模型的拟合
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates a file containing a LaTeX representation of the fitted model.
创建一个文件,其中包含一个LaTeX表示拟合模型。
用法----------Usage----------
## 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
参数----------Arguments----------
参数:object
a fit object created by a rms fitting function.
rms拟合函数创建一个合适的对象。
参数:title
ignored
忽视
参数:file,append
see latex.default
看到latex.default
参数:surv
if surv=TRUE was specified to cph, the underlying survival probabilities from object$surv.summary will be placed in a table unless surv=FALSE.
如果surv=TRUE被指定为cph,基本的生存概率object$surv.summary将被放置在一个表中,除非surv=FALSE。
参数:maxt
if the maximum follow-up time in the data (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.
如果最大的随访时间中的数据(object$maxtime)超过中的最后一项object$surv.summary,相关生存率估计在object$maxtime将被添加到表中,如果maxt=TRUE。
参数:which,varnames,columns,inline,before,dec,pretrans
see latex.default
看到latex.default
参数:after
if not an empty string, added to end of markup if inline=TRUE
如果不是空字符串,添加到结束的标记,如果inline=TRUE
参数: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
看到latexrms
参数:size
a LaTeX size to use, without the slash. Default is the prevailing size
使用LaTeX的大小,加斜杠。默认情况下是普遍存在的大小
参数:...
ignored
忽视
值----------Value----------
the name of the created file, with class c("latex","file"). This object works with latex viewing and printing commands in Hmisc.
所创建的文件的名称,与类c("latex","file")。这个对象的作品,与乳胶查看和打印命令,Hmisc。
(作者)----------Author(s)----------
Frank Harrell<br>
Department of Biostatistics, Vanderbilt University<br>
f.harrell@vanderbilt.edu
参见----------See Also----------
latex.rms, rcspline.restate, latex
latex.rms,rcspline.restate,latex
实例----------Examples----------
## 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)[拟合模型的解释,使表的S0(T)]
#for t=0,60,120,180,\dots Creates file f.tex[在t = 0,60,120,180,\点创建文件f.tex]
w #displays image, if viewer installed[显示图像时,如果观看者安装]
latex(f,file="") # send LaTeX code to the screen[LaTeX代码发送到屏幕上]
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|