hpfun {bite}R Documentation

Hyper-prior function

Description

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

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.

Value

A hyper-prior density function (of class "function")

Author(s)

Anna Kostikova and Daniele Silvestro

Examples

my.hp <- hpfun(hpf="Uniform", hp.pars=c(1,2))


[Package bite version 0.3 Index]