xtable: xtable Method from Joint Models.

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
2
3
4
## S3 method for class 'JMbayes'
xtable(x, caption = NULL, label = NULL, align = NULL,
    digits = NULL, display = NULL, which = c("all", "Longitudinal", "Event"),
    varNames.Long = NULL, varNames.Event = NULL, ...)

Arguments

x

an object inheriting from class JMbayes.

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.

...

additional arguments; currently none is used.

Value

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

Author(s)

Dimitris Rizopoulos d.rizopoulos@erasmusmc.nl

See Also

jointModelBayes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
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 <- jointModelBayes(lmeFit, survFit, timeVar = "time")
    
if (require("xtable")) {
    xtable:::xtable(jointFit, math.style.negative = TRUE)
}

## End(Not run)

drizopoulos/JMbayes documentation built on Feb. 2, 2021, 12:34 a.m.