Rizopoulos 2016 - Implementation MCMC and Baseline Hazard
Summary
jointModelBayes()takes a separately fittedlme()orglmmPQL()mixed model plus acoxph()object, and samples by random-walk Metropolis (slice sampling for the error precision, Wishart draw for the random-effects precision) with adaptive proposals taken from the separate fits. Defaults: 3,000 adaptive and 3,000 burn-in iterations, 20,000 kept iterations thinned to 2,000, one long chain, hierarchical centring when the random-effects variance exceeds .
Main Content
Design and defaults (Sec. 3.1-3.2)
Required arguments: mixed-model object, Cox object (
x=TRUE),timeVar. Default association: current value . Baseline hazard: penalised B-splines (default 15 knots, 17 coefficients, equally spaced percentiles of event times;lng.in.kn,knots,baseHaz). Survival integral:GQsurv="GaussKronrod"(default; 7 or 15 points) or"GaussLegendre",GQsurv.kpoints. Sampler:n.adapt3000 (acceptance rate checked everyn.batch100),n.burnin3000,n.iter20000,n.thinretains 2000. Student- random effects ifdf.REset (MH update of ). Proposal covariances for and come from the mixed model; survival coefficients and spline coefficients use a two-stage time-dependent Cox fit.
Convergence. One long chain (“one long chain school”); multiple chains by re-running with different init and processing the mcmc component in coda. Diagnostic plots (trace, ACF, density, CPO) in Appendix B via plot().
Hierarchical centring. Used when the largest random-effects variance exceeds , to improve mixing (compare E25’s centred vs non-centred vs hierarchically centred parametrisations).
Speed. For simple models JMbayes is slower than ML-based JM; for complex models comparable. Writing the MCMC in R is still many times faster than JAGS/WinBUGS/OpenBUGS, which need the “zeros trick” for the non-standard survival likelihood and in-program numerical integration. Fit times in the paper: 2.5-5.5 min typical, 59.3 min for the estimated weight-function model. The main advantage over ML is that extensions (categorical or censored longitudinal outcomes) are simple.
Appendix A: knot sensitivity (described in text)
The basic PBC model is refitted with 10 and 20 knots; results are little sensitive to the number and position of knots because spline coefficients are penalised (tauBs about 520). Left-truncated survival and exogenous time-varying covariates are handled by passing a counting-process
coxphfit (Appendix C).
Connections
Efficient MCMC, MCMC Basics, Rizopoulos 2016 - Joint Model Specification and Posterior.