Description Usage Arguments Details Value Examples
Generate random vector deviates of the transition probabilities p_{ij}(t_{0}, t_{n}) for a given cell i stacked into an n\times(number of cells) matrix
1 | rp(n, flist)
|
n |
number of probability vectors to generate |
flist |
list with the prior distributions for each cell |
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 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 n
rows and as many columns as cells taken from the length of
flist
. Each row is thus a probability vector
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.