Description Usage Arguments Details Value See Also Examples
Generate three-dimensional random deviates for a Monte Carlo computation of the integral
\int_{0}^{∞}dλ f_{λ}(λ)\int_{0}^{∞}dv f_{v}(v) \int_{0}^{∞} f_{u}(u)\ Φ(u\cdot v, (1 - u) \cdot v; λ, N^{\textrm{MNO}}, N^{\textrm{Reg}})\mathbb{P}(N^{\textrm{MNO, rep}}\big| u,v,λ).
The Monte Carlo technique makes use of stratified importance sampling.
1 | genUVLambda(nSim, nStrata, fu, fv, flambda, nMNO)
|
nSim |
number of three-dimensional points to generate |
nStrata |
integer vector of length 3 with the number of strata in each dimension |
fu |
named list with the prior marginal distributions of the parameter u |
fv |
named list with the prior marginal distributions of the parameter v |
flambda |
named list with the prior marginal distributions of the parameter λ |
nMNO |
non-negative integer vector with the number of individuals according to the MNO |
Notice that nSim
points are generated for each of the length(nMNO)
cells
so that the final data.table has nSim
\timeslength(nMNO)
rows.
The prior distributions are specified as named lists where the first component of each list must be the name of distribution ('unif', 'triang', '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.
triang: xMin
, xMax
, xMode
for minimum, maximum and mode (see
qtriang
).
gamma: scale
and shape
with the same meaning as in rgamma
.
genUVLambda
returns a data.table with the (u,v, λ)
coordinates of each point together with additional variables:
The length of nMNO
identifies the number of territorial cells in which the number
of individuals detected by the telecommunication network. The column cellID
identifies
these territorial cells.
Stratum_u
, Stratum_v
, and Stratum_lambda
jointly identify each
stratum in which the region of integration has been divided with the stratification.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.