Description Usage Arguments Value Author(s) Examples
Plot slices of the synthetic loglikelihood.
1 2 3 
object 

ranges 
ranges of values along which we want the slices. If 
nsim 
Number of simulations used to evaluate the synthetic likelihood at each location. 
param 
Named vector containing the value of the ALL parameters (including the sliced one). Parameters that are not
in 
pairs 
if 
draw 
If 
trans 
Named vector or list of transformations to be applied to the parameters in 
multicore 
If 
ncores 
Number of cores to use if 
cluster 
An object of class 
... 
additional arguments to be passed to 
Either a vector or matrix of logsynthetic likelihood estimates, depending on whether length(parNames) ==
1 or 2.
These are returned invisibly.
Matteo Fasiolo <matteo.fasiolo@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21  data(ricker_sl)
# Plotting slices of the logLikelihood
slice(object = ricker_sl,
ranges = list("logR" = seq(3.5, 3.9, by = 0.01),
"logPhi" = seq(2, 2.6, by = 0.01),
"logSigma" = seq(2, 0.5, by = 0.01)),
param = c(logR = 3.8, logSigma = log(0.3), logPhi = log(10)),
nsim = 500)
## Not run:
# Plotting a contour of the logLikelihood
slice(object = ricker_sl,
ranges = list("logR" = seq(3.5, 3.9, by = 0.01),
"logPhi" = seq(2, 2.6, by = 0.01),
"logSigma" = seq(2, 0.5, by = 0.04)),
pairs = TRUE,
param = c(logR = 3.8, logSigma = log(0.3), logPhi = log(10)),
nsim = 500, multicore = TRUE)
## End(Not run)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.