View source: R/14.2.5-strategy-mle.R
| neg_log_likelihood_lognormal | R Documentation |
Calculates the negative log-likelihood for observed final weights assuming they follow a log-normal distribution around the predicted weight. Consistent with the TMB backend implementation.
neg_log_likelihood_lognormal(params, observed_weights, simulation_function)
params |
Vector of parameters to estimate: - params[1]: p_value (feeding level, 0.01-5.0) - params[2]: log(sigma) (log of standard deviation of log-weights) |
observed_weights |
Numeric vector of observed final weights (g) |
simulation_function |
Function that takes p_value and returns predicted weight |
Negative log-likelihood value (scalar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.