Bayesian Model Fitting and Stacking for Multiple Imputation
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, n.impute = xtrans$n.impute, dtrans, derived, subset, refresh = 0, progress = if (refresh > 0) "stan-progress.txt" else "", ... )
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 |
... |
arguments passed to |
an rmsb
fit object with expanded posterior draws and diagnostics
Frank Harrell
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.