View source: R/lme_imp_adaptive.R
lme_imp_adaptive | R Documentation |
Run a joint model with adaptively increasing the number of iterations
lme_imp_adaptive( fixed, data, random, n.chains = 3, n.adapt = 100, n.iter = 0, thin = 1, monitor_params = c(analysis_main = TRUE), auxvars = NULL, refcats = NULL, models = NULL, no_model = NULL, trunc = NULL, shrinkage = FALSE, ppc = TRUE, seed = NULL, inits = 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, extra_iter = NULL, minsize = 500L, step = 200L, subset = NULL, cutoff = 1.2, prop = 0.8, gr_max = 1.5, max_try = 5L, ... )
fixed |
a two sided formula describing the fixed-effects part of the
model (see |
data |
a |
random |
only for multi-level models:
a one-sided formula of the form |
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 |
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. |
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) |
inits |
optional; specification of initial values in the form of a list
or a function (see |
warn |
logical; should warnings be given? Default is
|
mess |
logical; should messages be given? Default is
|
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 |
... |
additional, optional arguments
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.