latexrms(rms)
latexrms()所属R语言包:rms
LaTeX Representation of a Fitted Model
乳胶表示一个合适的模型
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates a file containing a LaTeX representation of the fitted model. For model-specific typesetting there is latex.lrm, latex.cph, latex.psm and latex.ols. latex.cph has some arguments that are specific to cph models. These routines work with the display package from statlib to display and print the formatted model fits. latexrms is the core function which is called internally by latexrms (which is called by latex.cph, latex.ols, etc.).
创建一个文件,其中包含一个LaTeX表示拟合模型。对于特定机型的排版有latex.lrm,latex.cph,latex.psm和latex.ols。 latex.cphcph模型的一些参数。这些例程display包statlib显示和打印格式的模型拟合。 latexrms的核心是调用的函数内部latexrms(这就是所谓的latex.cph,latex.ols,等)。
用法----------Usage----------
latexrms(object,
file=paste(first.word(deparse(substitute(object))),".tex",sep=""),
append=FALSE, which=1:p, varnames, columns=65, prefix=NULL, inline=FALSE,
before=if(inline)"" else "& &", after="", intercept, pretrans=TRUE,
digits=.Options$digits, size="")
## S3 method for class 'rms'
latex(object, title,
file=paste(first.word(deparse(substitute(object))),'tex',sep='.'), ...)
参数----------Arguments----------
参数:object
a fit object created by a fitting function in the rms series
rms系列中的拟合函数创建一个合适的对象,
参数:file
name of .tex file to create, default is first word of argument object with ".tex" added. Set to "" to send LaTeX output to standard output.
.tex文件创建的名称,默认是第一个字的说法object与".tex"。设置为"" LaTeX输出到标准输出。
参数:append
whether or not to append to an existing file
是否要追加到现有的文件
参数:which
a vector of subcripts (corresponding to object$Design$name) specifying a submodel to print. Default is to describe the whole model. which can also be a vector of character strings specifying the factor names to print. Enough of each string is needed to ensure a unique match. Names for interaction effects are of the form "age * sex". For any interaction effect for which you do not request main effects, the main effects will be added to which. When which is given, the model structural statement is not included. In this case, intercepts are not included either.
一个向量的subcripts(对应object$Design$name)指定的子模型打印。默认值是描述整个模型。 which指定因子名称来打印的字符串,也可以是一个矢量。够了,每个字符串的需要,以确保一个独特的比赛。互动效应的名称的形式"age * sex"。对于任何互动效果,你不要求主要影响,主要影响将被添加到which。当which,模型结构语句不包括在内。在这种情况下,不包括截取。
参数:varnames
variable names to substitute for non-interactions. Order must correspond to object$Design$name and interactions must be omitted. Default is object$Design$name[object$Design$assume.code!=9]. varnames can contain any LaTeX commands such as subscripts and "\\\\frac" (all "\" must be quadrupled.) Any "/" must be preceeded by "\\" (2, not 4 backslashes). Elements of varnames for interactions are ignored; they can be set to any value.
变量名,来代替非相互作用。订单必须对应于object$Design$name和相互作用必须省略。默认是object$Design$name[object$Design$assume.code!=9]。 varnames可以包含任何的LaTeX命令如标和“\ \ \ \压裂”(所有“\”必须是四倍)。任何“/”前面有“\ \” (2,而不是4反斜杠)。 varnames的元素中的相互作用被忽略,它们可以被设置为任何值。
参数:columns
maximum number of columns of printing characters to allow before outputting a LaTeX newline command
LaTeX的换行命令输出打印字符列前允许的最大数量
参数:prefix
if given, a LaTeX \lefteqn command of the form \lefteqn{prefix =} \\ will be inserted to print a left-hand-side of the equation.
如果给定,LaTeX的\ lefteqn命令的形式\lefteqn{prefix =} \\将被插入到打印左手端的方程。
参数:inline
Set to TRUE to create text for insertion in an in-line equation. This text contains only the expansion of X beta, and is not surrounded by "$".
设置为TRUE线方程来创建文本插入。本文所包含的扩展的X测试版,和,周围没有"$"。
参数:before
a character string to place before each line of output. Use the default for a LaTeX eqnarray environment. For inline=TRUE, the before string, if not an empty string, will be placed once before the entire markup.
每行输出一个字符串前放置。使用LaTeX的eqnarray环境的默认值。对于inline=TRUE,before字符串,如果不是空字符串,将被放置前一次整个标记。
参数:after
a character string to place after the output if inline=TRUE
放置后输出一个字符串,如果inline=TRUE
参数:intercept
a special intercept value to include that is not part of the standard model parameters (e.g., centering constant in Cox model). Only allowed in the latexrms rendition.
一个特殊的的截距值包括不属于标准的模型参数(例如,围绕不变的Cox比例风险模型)。只允许在latexrms移交。
参数:pretrans
if any spline or polynomial-expanded variables are themselves transformed, a table of pre-transformations will be formed unless pretrans=FALSE.
如果任何曲线或多项式展开的变量转化,转换将形成一个表,除非pretrans=FALSE。
参数:digits
number of digits of precision to use in formatting coefficients and other numbers
数位数字的精度,使用在格式化系数和其他数字
参数:size
a LaTeX font size to use for the output, without the slash. Default is current size.
LaTeX的字体大小,使用的输出,加斜杠。缺省值是当前的大小。
参数:title
ignored
忽视
参数:...
other arguments in ... will be passed to latexrms and latex.default
其他参数...将被传递给latexrms和latex.default
值----------Value----------
a file name of class "latex"
文件名的类"latex"
(作者)----------Author(s)----------
Frank Harrell<br>
Department of Biostatistics, Vanderbilt University<br>
f.harrell@vanderbilt.edu
参见----------See Also----------
latex, rcspline.restate, rms
latex,rcspline.restate,rms
实例----------Examples----------
## Not run: [#不运行:]
f <- lrm(death ~ rcs(age)+sex)
w <- latex(f)
w # displays, using e.g. xdvi[显示器,使用例如xdvi]
latex(f, file="") # send LaTeX code to screen[LaTeX代码发送到屏幕]
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|