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, 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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.