estimate_llh | R Documentation |
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.
estimate_llh(
model,
data,
parameter,
sim = 100,
cores = 1,
normalized = FALSE,
sim_data = NULL
)
model |
The model used for the estimation.
See |
data |
The data used for the estimation.
See |
parameter |
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 consequently 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. |
sim_data |
For internal use. Use existing simulations. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.