Creates a standardized likelihood class#'
createLikelihood(
likelihood,
names = NULL,
parallel = F,
catchDuplicates = T,
sampler = NULL,
parallelOptions = NULL
)
Log likelihood density
Parameter names (optional)
parallelization , either i) no parallelization --> F, ii) native R parallelization --> T / "auto" will select n-1 of your available cores, or provide a number for how many cores to use, or iii) external parallelization --> "external". External means that the likelihood is already able to execute parallel runs in form of a matrix with
Logical, determines whether unique parameter combinations should only be evaluated once. Only used when the likelihood accepts a matrix with parameter as columns.
sampler
list containing two lists. First "packages" determines the R packages necessary to run the likelihood function. Second "objects" the objects in the global envirnment needed to run the likelihood function (for details see createBayesianSetup
).
Florian Hartig
likelihoodIidNormal
likelihoodAR1