View source: R/update_var_prior.R
update_var_prior | R Documentation |
This function updates MAP prior of the variance, a mixture of inverse Gamma distributions, based on an estimated of the sample variance.
update_var_prior(prior, sample_var, degf)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.