Standard errors via bootstrap for an mjoint object
This function takes a model fit from an mjoint
object and
calculates standard errors and confidence intervals for the main
longitudinal and survival coefficient parameters, including the latent
association parameters, using bootstrapping (Efron and Tibshirani, 2000).
bootSE( object, nboot = 100, ci = 0.95, use.mle = TRUE, verbose = FALSE, control = list(), progress = TRUE, ncores = 1, safe.boot = FALSE, ... )
object |
an object inheriting from class |
nboot |
the number of bootstrap samples. Default is |
ci |
the confidence interval to be estimated using the
percentile-method. Default is |
use.mle |
logical: should the algorithm use the maximizer from the
converged model in |
verbose |
logical: if |
control |
a list of control values with components:
|
progress |
logical: should a progress bar be shown on the console to
indicate the percentage of bootstrap iterations completed? Default is
|
ncores |
integer: if more than one core is available, then the |
safe.boot |
logical: should each bootstrap replication be wrapped in a
|
... |
options passed to the |
Standard errors and confidence intervals are obtained by repeated fitting of the requisite joint model to bootstrap samples of the original longitudinal and time-to-event data. Note that bootstrap is done by sampling subjects, not individual records.
An object of class bootSE
.
This function is computationally intensive. A dynamic progress bar is
displayed showing the percentage of bootstrap models fitted. On computer
systems with more than one core available, computational time can be
reduced by passing the argument ncores
(with integer value >1) to
bootSE
, which implements parallel processing via the
foreach
package. Note: if parallel
processing is implemented, then the progress bar is not displayed.
Due to random sampling, an mjoint
model fitted to some bootstrap
samples may not converge within the specified control parameter settings.
The bootSE
code discards any models that failed to converge when
calculating the standard errors and confidence intervals. If a large
proportion of models have failed to converge, it is likely that it will
need to be refitted with changes to the control
arguments.
Graeme L. Hickey (graemeleehickey@gmail.com)
Efron B, Tibshirani R. An Introduction to the Bootstrap. 2000; Boca Raton, FL: Chapman & Hall/CRC.
mjoint
for approximate standard errors.
## Not run: # Fit a joint model with bivariate longitudinal outcomes data(heart.valve) hvd <- heart.valve[!is.na(heart.valve$log.grad) & !is.na(heart.valve$log.lvmi), ] fit <- mjoint( formLongFixed = list("grad" = log.grad ~ time + sex + hs, "lvmi" = log.lvmi ~ time + sex), formLongRandom = list("grad" = ~ 1 | num, "lvmi" = ~ time | num), formSurv = Surv(fuyrs, status) ~ age, data = list(hvd, hvd), inits = list("gamma" = c(0.11, 1.51, 0.80)), timeVar = "time", verbose = TRUE) fit.boot <- bootSE(fit, 50, use.mle = TRUE, control = list( burnin = 25, convCrit = "either", tol0 = 6e-03, tol2 = 6e-03, mcmaxIter = 60)) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.