alphaPrior: Generate prior distributions for parameters of the Dirichlet...

Description Usage Arguments Details Value Examples

Description

Generate a list of prior distributions for the parameters of the Dirichlet distribution in the hierarchical model. Each component of the list corresponds to the prior distribution of the parameter α_{ij}(t_{0}, t_{n}) for each cell j. This function initial works over a fixed initial cell i. Each returned distribution is specified as a list with an identification name as first component and named components with the distribution parameters for the rest of components.

Usage

1
alphaPrior(nMNOfrom, names, variation)

Arguments

nMNOfrom

numeric vector with the number of individuals moving from the initial cell to the rest of cells (including those remaining)

names

character vector with the names of the prior distributions for each cell

variation

list of lists whose components are parameters providing a measure of variation of each prior distribution

Details

The function takes the number of cells from the input parameter nMNOfrom which specifies the number of individuals detected by the network moving from the initial cell to each of the cells (including those remaining in the same). The function executes the same construction for each final cell. It takes the name of prior distribution from the input parameter names and construct the corresponding prior distribution for each cell j with mode at u_{j}^{*}=N_{j}, where N_{j} is taken from nMNOfrom. Next the rest of parameters of the distribution are computed according to the dispersion parameters specified in variation.

As accepted distribution names, currently the user can specify unif, degen, triang, and gamma.

The dispersion parameters recognised so far are the coefficients of variation only (standard deviation divided by the mean of the distribution). These dispersion parameters must be specified by a named component cv with a numeric value in [0, 1].

For each distribution the parameters are computed as follows:

Value

Return a list with a list in each component specifying the prior for each cell

Examples

1
2
3
# Three cells. Cell 1 under study. 10 individuals remain.
alphaPrior(c(10, 3, 4), c('unif', 'triang', 'gamma'),
           list(list(cv = 0.1), list(cv = 0.05), list(cv = 0.15)))

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