Summarises parameter estimates from a fitted joint model
into a tidy data.frame, one row per term. Follows the conventions
of the broom package.
Usage
# S3 method for class 'joint'
tidy(x, se = NULL, conf.int = FALSE, conf.level = 0.95, ...)Arguments
- x
an object of class
joint.- se
a
data.framereturned byjointSE, optionally supplied to include standard errors, Wald p-values, and confidence intervals in the output. IfNULL(the default), these columns are included but set toNA.- conf.int
logical; if
TRUEandseis provided, includeconf.lowandconf.highcolumns. Defaults toFALSE.- conf.level
the confidence level for the intervals, matching the level used in
se. Defaults to0.95.- ...
additional arguments (currently unused).
Value
A data.frame with columns:
componentsub-model:
"longitudinal","survival","association", or"variance".termparameter name.
estimatepoint estimate.
std.errorbootstrap standard error (
NAifsenot supplied).statisticWald z-statistic (
NAifsenot supplied or for variance components).p.valuetwo-sided Wald p-value (
NAifsenot supplied or for variance components).conf.low,conf.highbootstrap percentile confidence bounds, included only when
conf.int = TRUEandseis provided.
Examples
data(heart.valve)
heart.surv <- UniqueVariables(heart.valve,
var.col = c("fuyrs", "status"),
id.col = "num")
heart.long <- heart.valve[, c("num", "time", "log.lvmi")]
heart.cov <- UniqueVariables(heart.valve,
c("age", "hs", "sex"),
id.col = "num")
heart.valve.jd <- jointdata(longitudinal = heart.long,
baseline = heart.cov,
survival = heart.surv,
id.col = "num",
time.col = "time")
fit <- joint(heart.valve.jd,
long.formula = log.lvmi ~ 1 + time + hs,
surv.formula = Surv(fuyrs, status) ~ hs,
model = "intslope")
tidy(fit)
#> component term estimate std.error statistic p.value
#> 1 longitudinal (Intercept) 4.992709176 NA NA NA
#> 2 longitudinal time -0.006977116 NA NA NA
#> 3 longitudinal hsStentless valve 0.055921729 NA NA NA
#> 4 survival hsStentless valve 0.810613443 NA NA NA
#> 5 association gamma_0 0.847627525 NA NA NA
#> 6 variance U_0 0.113583056 NA NA NA
#> 7 variance U_1 0.001765284 NA NA NA
#> 8 variance Residual 0.037074269 NA NA NA