AM_emp_bayes_uninorm {AntMAN} | R Documentation |
compute the hyperparameters of an Normal-Inverse-Gamma distribution using an empirical Bayes approach
Description
This function computes the hyperparameters of a Normal Inverse-Gamma distribution using an empirical Bayes approach. More information about how these hyperparameters are determined can be found here: Bayes and empirical Bayes: do they merge? (Petrone et al. 2012).
Usage
AM_emp_bayes_uninorm(y, scEmu = 1, scEsig2 = 3, CVsig2 = 3)
Arguments
y |
The data y. If y is univariate, a vector is expected. Otherwise, y should be a matrix. |
scEmu |
a positive value (default=1) such that marginally E( |
scEsig2 |
a positive value (default=3) such that marginally E( |
CVsig2 |
The coefficient of variation of |
Value
an object of class AM_mix_hyperparams
, in which hyperparameters m0
, k0
,
nu0
and sig02
are specified. To understand the usage of these hyperparameters, please refer to
AM_mix_hyperparams_uninorm
.