Package index
-
survivalSub() - Fit the survival sub-model
-
longitudinalSub() - Fit a multivariate longitudinal sub-model
-
predictRisk() - Dynamic prediction function for future event risk
-
predictLongitudinal() - Dynamic prediction function for future longitudinal outcomes
-
simulateTrajectory() - Simulate future trajectories from the backward joint model
-
checkBandcountConvergence() - Check whether bandcount1/bandcount2/bandcount3 are large enough
-
survivalTrans() - Build a survival-time transform basis from cut points
-
backwardTimeBasis() - Add a backward-time basis to longitudinal sub-model formulas
Censored subjects and long-term prediction (experimental)
Impute the censored subjects’ event times so that the longitudinal sub-model is not fit on the events only, compare longitudinal fits, borrow the survival tail from an external cohort, and predict the whole distribution of the event time.
-
fitImputedBJM() - Fit the backward joint model with censored subjects in the longitudinal sub-model
-
observedLongLogLik() - Observed-data log-likelihood of the longitudinal sub-model
-
survivalSubExternal() - Survival sub-model that borrows a long-term tail from an external cohort
-
predictEventTime() - Predictive distribution of the event time
Interval-censored events
Fit the backward joint model when the event time is only known to lie between two visits.
-
fitIntervalBJM() - Fit the backward joint model to interval-censored event times
Recurrent events (experimental)
Reshape recurrent-event data for the gap-time extension of the backward joint model, and predict the number of recurrences.
-
buildRecurrentEpisodes() - Reshape recurrent-event data into gap-time episodes for the backward joint model
-
predictRecurrentCount() - Predict the number of recurrent events in a window, by rolling episodes forward
Transport to a new population (experimental)
Adapt the survival sub-model to a population with different event rates, keeping the longitudinal sub-model, with or without target outcomes.
-
transportBJM() - Transport a fitted backward joint model to a new population
Missing data imputation
Impute missing longitudinal biomarker values and pool sub-model fits across imputations.
-
imputeLongitudinal() - Impute missing longitudinal biomarker values
-
poolLongitudinalSub() - Pool longitudinal sub-model fits across multiple imputations with Rubin's rules
Plots
Visualize predictions, fitted sub-models, observed longitudinal trajectories, and observed event outcomes.
-
predictPlot() - Plot risk and future biomarker predictions across a horizon sweep
-
riskPlot() - Plot predicted risk across a sweep of landmark times
-
cmtPlot() - Plot conditional mean trajectories (CMT)
-
spaghettiPlot() - Plot individual longitudinal trajectories (spaghetti plot)
-
cifPlot() - Plot cumulative incidence functions
-
performancePlot() - Plot predictive performance across landmark times
-
calibrationPlot() - Plot calibration of dynamic risk predictions
-
plot(<longitudinalSub.BJM>) - Plot a fitted longitudinal sub-model
-
plot(<survivalSub.BJM>) - Plot a fitted survival sub-model
-
plot(<predictLongitudinal.BJM>) - Plot predicted biomarker distributions
-
plot(<simulateTrajectory.BJM>) - Plot simulated futures
-
pbc3 - Mayo Clinic primary biliary cirrhosis data used as example code