stan_mean: Extract Posterior Mean Across All Chains From Stanfit Object

Description Usage Arguments Value

View source: R/stan_mean.R

Description

Wrapper for rstan::get_posterior_mean() making it less cumbersome to extract the mean of a parameter (or other quantity) across all chains.

Usage

1
stan_mean(object, pars)

Arguments

object

An object of class stanfit.

pars

Character string providing the parameter (or other quantity) name of interest.

...

Additional arguments to be passed to rstan::get_posterior_mean().

Value

When permuted = TRUE (the default), this function returns an array representing samples for par with all chains merged together.


ebuhle/SEMPSM documentation built on Aug. 8, 2020, 4:05 a.m.