Description Usage Arguments Details Value See Also Examples
View source: R/AM_mix_components_prior.R
This function generates a configuration object for a Shifted Poisson prior on the number of mixture components such that
q_M(m)= Pr (M=m)= \frac{e^{-Λ}Λ^{m-1} }{(m-1)!} , \quad m=1,2,3,…
The hyperparameter Λ can either be fixed using Lambda
or assigned a Gamma(a,b) prior distribution with a
and b
.
In AntMAN we assume the following parametrization of the Gamma density:
p(x\mid a,b )= \frac{b^a x^{a-1}}{Γ(a)} \exp\{ -bx \}, \quad x>0.
1 | AM_mix_components_prior_pois(a = NULL, b = NULL, Lambda = NULL, init = NULL)
|
a |
The shape parameter |
b |
The rate parameter |
Lambda |
It allows to set the hyperparameter Λ to be assigned a fixed value. |
init |
The initial value for Λ, when specifying |
If no arguments are provided, the default is a prior distribution with a = 1
and b = 1
.
An AM_mix_components_prior
object. This is a configuration list to be used as mix_components_prior
argument for AM_mcmc_fit
.
1 | components_prior = AM_mix_components_prior_pois (init=3, a=1, b=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.