Description Usage Arguments Details Value References See Also Examples
Compute the indicators for model checking given by ...
1 2 3 |
nSimPar |
number of simulations to compute the underlying integrals |
nMNO |
non-negative integer vectors with the number of individuals detected according to the network operator |
nReg |
non-negative integer vectors with the number of individuals detected according to the population register |
fu |
named list with the prior marginal distribution of the parameter |
fv |
named list with the prior marginal distributions of the parameter |
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 3 with the number of strata in each dimension. Default
value is |
verbose |
logical (default |
nThreads |
number (default the number of all cores, including logical cores) to use for computation |
The underlying integrals are computed using with Monte Carlo techniques using
nSimPar
points for each of the generated random deviate values.
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.
triang: xMin
, xMax
, xMode
for minimum, maximum and mode (see
qtriang
).
gamma: scale
and shape
with the same meaning as in rgamma
.
modelCheckInd
returns a data.table with the values of the indicators
for model checking:
nMNO:
nReg:
B:
relB:
V:
relV:
MSE:
relMSE:
https://github.com/MobilePhoneESSnetBigData
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Easily, a function to draw conditioned on the parameters:
modelCheckInd(nSimPar = 10, nMNO = 29, nReg = 123,
fu = list('unif', xMin = 0.2, xMax = 0.25),
fv = list('unif', xMin = 115, xMax = 130),
flambda = list('gamma', shape = 21, scale = 123 / 20))
modelCheckInd(nSimPar = 10, nMNO = c(29, 31), nReg = c(123, 119),
fu = list(list('unif', xMin = 0.2, xMax = 0.25),
list('unif', xMin = 0.21, xMax = 0.26)),
fv = list(list('unif', xMin = 115, xMax = 130),
list('unif', xMin = 114, xMax = 131)),
flambda = list(list('gamma', shape = 21, scale = 123 / 20),
list('gamma', shape = 11, scale = 124 / 10)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.