stackMI | R Documentation |
Runs an rmsb
package Bayesian fitting function such as blrm
separately for each completed dataset given a multiple imputation result such as one produced by Hmisc::aregImpute
. Stacks the posterior draws and diagnostics across all imputations, and computes parameter summaries on the stacked posterior draws.
stackMI(
formula,
fitter,
xtrans,
data = NULL,
n.impute = xtrans$n.impute,
dtrans = NULL,
derived = NULL,
subset = NULL,
refresh = 0,
progress = if (refresh > 0) "stan-progress.txt" else "",
file = NULL,
...
)
formula |
a model formula |
fitter |
a Bayesian fitter |
xtrans |
an object created by |
data |
data frame |
n.impute |
number of imputations to run, default is the number saved in |
dtrans |
see |
derived |
see |
subset |
an integer or logical vector specifying the subset of observations to fit |
refresh |
see rstan::sampling. The default is 0, indicating that no progress notes are output. If |
progress |
see |
file |
optional file name in which to store results in RDS format. If |
... |
arguments passed to |
an rmsb
fit object with expanded posterior draws and diagnostics
Frank Harrell
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.