Learn R Programming

JM (version 0.8-1)

xtable: xtable Method from Joint Models.

Description

produces a LaTeX table with the results of a joint model using package xtable.

Usage

## S3 method for class 'jointModel':
xtable(x, caption = NULL, label = NULL, align = NULL,
    digits = NULL, display = NULL, which = c("all", "Longitudinal", "Event"),
    varNames.Long = NULL, varNames.Event = NULL, p.values = TRUE, 
    digits.pval = 4, ...)

Arguments

x
an object inheriting from class jointModel.
caption
the caption argument of xtable().
label
the label argument of xtable().
align
the align argument of xtable().
digits
the digits argument of xtable().
display
the display argument of xtable().
which
a character string indicating which results to include in the LaTeX table. Options are all results, the results of longitudinal submodel or the results of the survival submodel.
varNames.Long
a character vector of the variable names for the longitudinal submodel.
varNames.Event
a character vector of the variable names for the survival submodel.
p.values
logical; should p-values be included in the table.
digits.pval
a numeric scalare denoting the number of significance digits in the $p$-value.
...
additional arguments; currently none is used.

Value

  • A LaTeX code chunk with the results of the joint modeling analysis.

See Also

jointModel

Examples

Run this code
require(xtable)
prothro$t0 <- as.numeric(prothro$time == 0)
lmeFit <- lme(pro ~ treat * (time + t0), random = ~ time | id, data = prothro)
survFit <- coxph(Surv(Time, death) ~ treat, data = prothros, x = TRUE)
jointFit <- jointModel(lmeFit, survFit, timeVar = "time", 
    method = "weibull-PH-aGH")

xtable(jointFit, math.style.negative = TRUE)

Run the code above in your browser using DataLab