hpfun: Hyper-prior function

Description Usage Arguments Details Value Author(s) Examples

View source: R/hpfun.R

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

1
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

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

bite documentation built on April 22, 2020, 5:09 p.m.

Related to hpfun in bite...