vb_wrap: Variational Bayes wrapper function.

Description Usage Arguments Value

Description

Convenience function for parallelizing calls to VB.

Usage

1
vb_wrap(svmult, stmod, ss, resnames, output_samples)

Arguments

svmult

Scalar multiplier to increase or decrease the sigma_v scale hyperparameter.

stmod

An object of class stanmodel.

ss

A list of sufficient statistics from init_ss.

resnames

A string vector of parameter names to be included in output.

output_samples

How many samples from the approximate posterior to estimate the posterior mean of each parameter.

Value

A list with components stan_vb_fit (the result from Stan) and logtxt (the log of Stan output).


willtownes/vamf documentation built on May 8, 2019, 9:31 a.m.