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.).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="")
rms
series.tex
file to create, default is first word of argument
object
with ".tex"
added. Set to ""
to send LaTeX
output to standard output.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. Enobject$Design$name
and interactions must be omitted.
Default is
object$Design$name[object$Design$assume.code!=9]
. varnames
can contai\lefteqn{prefix =} \\
will be inserted to print a left-hand-side of the equation.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
"$"
.eqnarray
environment. For inline=TRUE
, the
before
string, if not an empty string, will be placed once
before the entire markup.inline=TRUE
latexrms
rendition.pretrans=FALSE
."latex"
latex
, rcspline.restate
,
rms
f <- lrm(death ~ rcs(age)+sex)
w <- latex(f)
w # displays, using e.g. xdvi
latex(f, file="") # send LaTeX code to screen
Run the code above in your browser using DataLab