genAlpha: Generate values for the parameters of the Dirichlet...

Description Usage Arguments Details Value Examples

Description

Generate a matrix of values of the parameters α_{ij}(t_{0}, t_{n}) of the Dirichlet distribution in the hierarchical model. This function initial works over a fixed initial cell i under study.

Usage

1
genAlpha(nSim, flist)

Arguments

nSim

number of values to generate

flist

list with the prior distributions for each cell

Details

This function generates the nSim random values according to the prior of each cell specified in flist.

The prior distributions are specified as named lists where the first component of each list must be the name of distribution ('unif', 'triang', 'degen', 'gamma') and the rest of components must be named according to the name of the parameters of the random generator of the corresponding distribution according to:

Value

Return a matrix with as many columns as cells and as many rows as number of generated values

Examples

1
2
3
priors <- alphaPrior(c(10, 3, 4), c('unif', 'triang', 'gamma'),
                     list(list(cv = 0.1), list(cv = 0.05), list(cv = 0.15)))
genAlpha(10, priors)

MobilePhoneESSnetBigData/pestim documentation built on May 31, 2019, 2:44 p.m.