xtable.joint | R Documentation |
xtable
for a joint
object.Prints an xtable
output for a fitted joint
object to the console,
or to a specified save location
## S3 method for class 'joint'
xtable(
x,
caption = NULL,
label = NULL,
align = NULL,
digits = NULL,
display = NULL,
auto = FALSE,
p.val = FALSE,
max.row = NULL,
dp = 3,
vcov = FALSE,
capture = FALSE,
capture.location = "",
hlines = "middle-bottom",
booktabs = TRUE,
size = "footnotesize",
...
)
x |
a joint model fit by the |
caption |
character, specifies the |
label |
character, specifies the |
align |
character, specifies the |
digits |
integer, specifies the |
display |
character, specifies the |
auto |
logical, specifies the |
p.val |
logical, should p-values be returned? Defaults to |
max.row |
integer, the number of rows after which the table is ‘broken’ vertically
and merged horizontally; useful for long tables. Defaults to |
dp |
integer, the number of decimal places to round the estimate, standard error and
confidence intervals to; defaults to |
vcov |
logical, should the half-vectorisation of the block diagonal of covariance
matrix be reported? Default is |
capture |
logical, should the printed |
capture.location |
character, if |
hlines |
character, specifies which horizontal lines are used in the outputted
LaTeX table. Supply a character string which contains |
booktabs |
logical, if |
size |
character, LaTeX size to be placed before the tabular environment, defaults
to |
... |
additional arguments, none used. |
A LaTeX-ready xtable
print-out of the joint model. A list containing
constituent tables is also returned invisibly, along with the final xtable
output.
James Murray (j.murray7@ncl.ac.uk).
joint
# Bivariate joint model ------------------------------------------------
require(xtable)
data <- simData(n = 100)$data
long.formula <- list(
Y.1 ~ time + cont + bin + (1 + time|id),
Y.2 ~ time + cont + bin + (1 + time|id)
)
surv.formula <- Surv(survtime, status) ~ cont + bin
family <- list("gaussian", "gaussian")
fit <- joint(long.formula, surv.formula, data, family)
xtable(fit)
# Example of arguments: add dummy caption, add p-values.
xtable(fit, p.val = TRUE, dp = 4, caption = "This is a caption")
# Change size, place horizontal lines everywhere
xtable(fit, size = "normalsize", hlines = c("top-middle-bottom"))
# Make a wider table without booktabs
xtable(fit, booktabs = FALSE, max.row = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.