View source: R/JM_imp_adaptive.R
JM_imp_adaptive | R Documentation |
Run a joint model with adaptively increasing the number of iterations
JM_imp_adaptive( formula, data, df_basehaz = 6, n.chains = 3, n.adapt = 100, n.iter = 0, thin = 1, monitor_params = c(analysis_main = TRUE), auxvars = NULL, timevar = NULL, refcats = NULL, models = NULL, no_model = NULL, assoc_type = NULL, trunc = NULL, shrinkage = FALSE, ppc = TRUE, seed = NULL, scale_vars = NULL, hyperpars = NULL, modelname = NULL, modeldir = NULL, keep_model = FALSE, overwrite = NULL, quiet = TRUE, progress.bar = "text", warn = TRUE, mess = TRUE, keep_scaled_mcmc = FALSE, inits_iter = 200, what = c("RinvD", "invD", "tau", "b"), extra_iter = NULL, minsize = 500L, step = 200L, subset = NULL, cutoff = 1.2, prop = 0.8, gr_max = 1.5, max_try = 5L, cc = FALSE, ... )
formula |
a two sided model formula (see |
data |
a |
df_basehaz |
degrees of freedom for the B-spline used to model the
baseline hazard in proportional hazards models
( |
n.chains |
number of MCMC chains |
n.adapt |
number of iterations for adaptation of the MCMC samplers
(see |
n.iter |
number of iterations of the MCMC chain (after adaptation;
see |
thin |
thinning interval (integer; see |
monitor_params |
named list or vector specifying which parameters should be monitored (more details below) |
auxvars |
optional; one-sided formula of variables that should be used as predictors in the imputation procedure (and will be imputed if necessary) but are not part of the analysis model(s). For more details with regards to the behaviour with non-linear effects see the vignette on Model Specification |
timevar |
name of the variable indicating the time of the measurement of a time-varying covariate in a proportional hazards survival model (also in a joint model). The variable specified in "timevar" will automatically be added to "no_model". |
refcats |
optional; either one of |
models |
optional; named vector specifying the types of models for
(incomplete) covariates.
This arguments replaces the argument |
no_model |
optional; vector of names of variables for which no model should be specified. Note that this is only possible for completely observed variables and implies the assumptions of independence between the excluded variable and the incomplete variables. |
assoc_type |
named vector specifying the type of the association used for a time-varying covariate in the linear predictor of the survival model when using a "JM" model. Implemented options are "underl.value" (linear predictor; default for covariates modelled using a Gaussian, Gamma, beta or log-normal distribution) covariates) and "obs.value" (the observed/imputed value; default for covariates modelled using other distributions). |
shrinkage |
optional; either a character string naming the shrinkage method to be used for regression coefficients in all models or a named vector specifying the type of shrinkage to be used in the models given as names. |
ppc |
logical: should monitors for posterior predictive checks be set? (not yet used) |
seed |
optional; seed value (for reproducibility) |
warn |
logical; should warnings be given? Default is
|
mess |
logical; should messages be given? Default is
|
inits_iter |
number of iteration used for the model that generates the initial values |
what |
vector of node types |
extra_iter |
number of iterations that should be added to the model if the Gelman-Rubin criterion is too large |
minsize |
the minimum number of iterations to be considered |
step |
the step size in which iterations are omitted as burn-in |
subset |
subset of parameters on which the Gelman-Rubin criterion should be evaluated. Follows the logic used in JointAI |
cutoff |
the cut-off used for the Gelman Rubin criterion |
prop |
proportion of parameters that need to be below the |
gr_max |
maximum allowed value for the Gelman-Rubin criterion |
max_try |
maximum number of runs of |
cc |
logical: should the model be run as a complete case analysis? |
... |
additional, optional arguments
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.