View source: R/MAVB_functions.R
MAVB | R Documentation |
Given a model estimated using vglmer
, this function
performs marginally augmented variational Bayes (MAVB) to improve the
approximation quality.
MAVB(object, samples, verbose = FALSE, var_px = Inf)
object |
Model fit using |
samples |
Number of samples to draw. |
verbose |
Show progress in drawing samples. |
var_px |
Variance of working prior for marginal augmentation. Default
( |
This function returns the improved estimates of the parameters. To use MAVB when generating predictions, one should use predict_MAVB. At present, MAVB is only enabled for binomial models.
This function returns a matrix with samples
rows and columns
for each fixed and random effect.
Goplerud, Max. 2022a. "Fast and Accurate Estimation of Non-Nested Binomial Hierarchical Models Using Variational Inference." Bayesian Analysis. 17(2): 623-650.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.