Description Usage Arguments Details Value See Also Examples
Generate values of a candidate distribution density function in the accept-reject method of generation of random variables applied to the distribution of the lambda parameter
1 2 |
lambda |
numeric vector with the lambda parameter values |
nMNO |
non-negative integer vectors with the number of individuals detected in each cell according to the network operator |
nReg |
non-negative integer vectors with the number of individuals detected in each cell according to the population register |
fu |
named list with the prior marginal distribution for the parameter u |
fv |
named list with the prior marginal distribution for the parameter v |
flambda |
named list with the prior distribution of the parameter λ |
relTol |
relative tolerance in the computation of the |
nSim |
number of two-dimensional points to generate to compute the integral. Default value
is |
nStrata |
integer vector of length 2 with the number of strata in each dimension. Default
value is |
verbose |
logical (default |
The candidate distribution is a gamma distribution with parameters shape = nMNO
+
1 and scale = λ^{*} / nMNO
, where λ^{*} stands for the mode of the
posterior distribution of the lambda parameter.
It is important to know that currently this function accepts only parameters for a single cell at a time. In case of interest for the candidate density function values for a set of cells, the user should program his/her own routine to apply this function to every cell.
dg
generates length(lambda)
values of the density probability function of
the candidate distribution in the accept-reject method.
modeLambda
, dlambda
for related functions.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.