update_var_prior: Update the MAP prior of the variance

View source: R/update_var_prior.R

update_var_priorR Documentation

Update the MAP prior of the variance

Description

This function updates MAP prior of the variance, a mixture of inverse Gamma distributions, based on an estimated of the sample variance.

Usage

update_var_prior(prior, sample_var, degf)

Arguments

prior

a list with elements w, shape, rate specifying the parameters of the mixture of inverse Gamma distributions.

sample_var

a number specifying the observed sample variance

degf

a number specifying the degrees of freedom from the sample variance


tobiasmuetze/varmap documentation built on Dec. 8, 2022, 2:16 p.m.