Description Usage Arguments Details Value Examples
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.
1 | genAlpha(nSim, flist)
|
nSim |
number of values to generate |
flist |
list with the prior distributions for each cell |
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:
unif: xMin
, xMax
for the minimum, maximum of the sampled interval.
degen: x0
for the degenerate value of the random variable.
triang: xMin
, xMax
, xMode
for minimum, maximum and mode (see
qtriang
).
gamma: scale
and shape
with the same meaning as in rgamma
.
Return a matrix with as many columns as cells and as many rows as number of generated values
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.