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 accurate than the glm fitting used in the main algorithm.
estimate_llh(
model,
data,
parameter,
sim = 100,
cores = 1,
normalized = FALSE,
sim_data = NULL
)
The model used for the estimation.
See create_jaatha_model
.
The data used for the estimation.
See create_jaatha_data
.
The parameter combination for which the loglikelihood will be estimated.
The number of simulations that will be used for averaging the expectation values of the summary statistics.
The number of CPU cores that will be used for the simulations. The relies on the parallel package, and consequently only one core is supported on Windows.
For internal use. Indicates whether the parameter combination is normalized to [0, 1]-scale, or on its natural scale.
For internal use. Use existing simulations.