posterior_density_funs_sigmas: Create marginal posterior density function approximations for...

View source: R/bf.R

posterior_density_funs_sigmasR Documentation

Create marginal posterior density function approximations for random effect SDs

Description

For each RE-SD, approximates the marginal posterior density from MCMC samples for use in BF calculations.

Usage

posterior_density_funs_sigmas(mires, add_zero = TRUE, ...)

Arguments

mires

mires object.

add_zero

Logical (Default: TRUE). Whether to add a zero to samples.

...

Args passed onto .density.stan.

Details

Starts by computing (lower-bounded) logspline approximations. If these fail, it uses the Dirichlet process with positive-normal kernels as an approximation.

Value

List of approximate density functions.

Author(s)

Stephen Martin


MIRES documentation built on June 8, 2025, 10:55 a.m.