slik: Evaluates the synthetic log-likelihood.

Description Usage Arguments Value Author(s) References Examples

View source: R/slik.R

Description

Evaluates the synthetic log-likelihood.

Usage

1
2
slik(object, param, nsim, multicore = FALSE, ncores = detectCores() - 1,
  cluster = NULL, ...)

Arguments

object

An object of class synlik.

param

Vector of parameters at which the synthetic likelihood will be evaluated.

nsim

Number of simulation from the model.

multicore

(logical) if TRUE the object@simulator and object@summaries functions will be executed in parallel. That is the nsim simulations will be divided in multiple cores.

ncores

(integer) number of cores to use if multicore == TRUE.

cluster

an object of class c("SOCKcluster", "cluster"). This allowes the user to pass her own cluster, which will be used if multicore == TRUE. The user has to remember to stop the cluster.

...

additional arguments to be passed to object@simulator and object@summaries. In general I would avoid using it and including object@extraArgs everything they need.

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

1
2
3
data(ricker_sl)
set.seed(643)
slik(ricker_sl, param = c(3.8, -1.2, 2.3), nsim = 500)                     

synlik documentation built on May 25, 2021, 5:09 p.m.