This function creates a hyper-prior density function.
Currently supported density function are Uniform, Gamma and Normal.
The resulting function is used during MCMC mcmc_bite
to estimate parameters of priors.
Usage
hpfun(hpf = "Uniform", hp.pars = c(1, 2), ...)
Arguments
hpf
name of a density function. Supported density functions are: Uniform, Gamma and Normal (abbreviations are not supported)
hp.pars
a vector of density function parameters
...
additional parameters that can be passed to a density function
Value
A hyper-prior density function (of class "function")
Details
There are three currently implemented density function:
Uniform, Gamma and Normal. Each of these densities requires two input parameters and hp.pars
must be a vector of two values and cannot be left empty.