posterior_samples.vglmer {vglmer}R Documentation

Draw samples from the variational distribution

Description

This function draws samples from the estimated variational distributions. If using MAVB to improve the quality of the approximating distribution, please use MAVB or predict_MAVB.

Usage

posterior_samples.vglmer(object, samples, verbose = FALSE)

Arguments

object

Model fit using vglmer.

samples

Number of samples to draw.

verbose

Show progress in drawing samples.

Value

This function returns a matrix with samples rows and columns for each fixed and random effect.


[Package vglmer version 1.0.3 Index]