slik {synlik} | R Documentation |
Evaluates the synthetic log-likelihood.
Description
Evaluates the synthetic log-likelihood.
Usage
slik(object, param, nsim, multicore = FALSE, ncores = detectCores() - 1,
cluster = NULL, ...)
Arguments
object |
An object of class |
param |
Vector of parameters at which the synthetic likelihood will be evaluated. |
nsim |
Number of simulation from the model. |
multicore |
(logical) if |
ncores |
(integer) number of cores to use if |
cluster |
an object of class |
... |
additional arguments to be passed to |
Value
The estimated value of the synthetic log-likelihood at param
.
Author(s)
Matteo Fasiolo <matteo.fasiolo@gmail.com>
References
Simon N Wood. Statistical inference for noisy nonlinear ecological dynamic systems. Nature, 466(7310):1102–1104, 2010.
Examples
data(ricker_sl)
set.seed(643)
slik(ricker_sl, param = c(3.8, -1.2, 2.3), nsim = 500)