An R package for recurrent event data analysis and joint modeling using accelerated failure time (AFT) models. It also includes fitting AFT models for right censored (non-recurrent) time-to-event data. Available models are Weibull, log-logistic, log-normal, exponentiated Weibull and generalized gamma. Maximum likelihood method is used to fit recurrent event models, and Bayesian approach (implemented in JAGS) is used for joint modeling. The package dclone is used for parallel computation in JAGS for MCMC. Note that JAGS must be installed for MCMC. See the pdf manual for details.
Step 1: Install JAGS (http://mcmc-jags.sourceforge.net/)
Step 2: From R,
library(devtools)
install_github("sa4khan/AFTjmr")
survreg.aft: Fit a parametric AFT model to time-to-event data
surv.resid: Cox-Snell residuals of survreg.aft fits
LR.test: Likelihood ratio test for Weibull as a submodel of the exponentiated Weibull or generalized gamma model
sim.rec: Simulate recurrent event data for fixed covariates
jmreg.aft: Fit a joint model
jm.summary: Summary of a joint model fit
jm.resid.plot: Cox-Snell residual plot for the event process of the joint model
jm.reffects: Posterior means/medians of the random effects from a joint model fit
jm.DIC: Computes DIC for Bayesian fit of the joint model
jm.WAIC: Computes WAIC for Bayesian fit of the joint model
jm.surv: Dynamic predictions of survival probabilites
jm.sim: Simulate from joint models
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.