estimate_llh: Estimate the Log-Likelihood for a given parameter combination
Description
This function estimates the Log-likelihood value for a given
parameter combination. It conducts a number of simulations for
the parameter combination, averages the summary statistics to
esimate their expected values, and uses them to calculate the
likelihood. For a resonable number of simulation, this is more
precise than the glm fitting used in the main algorithm.
The parameter combination for which the loglikelihood
will be estimated.
sim
The number of simulations that will be used for averaging the
expectation values of the summary statistics.
cores
The number of CPU cores that will be used for the simulations.
The relies on the parallel package, and consequenlty only one
core is supported on Windows.
normalized
For internal use. Indicates whether the parameter
combination is normalized to [0, 1]-scale, or on its natural
scale.