View source: R/fit_distributions.R
| create_objective | R Documentation |
Creates the objective function for optimization-based estimation methods. For MLE, returns negative log-likelihood. For MPS, returns negative log-product-spacing with optional ties correction.
create_objective(method, x, dist, tol_spacing, ties_method, custom_functions)
method |
character string: "mle" or "mps". |
x |
numeric vector of sorted data. |
dist |
character string specifying the distribution. |
tol_spacing |
numeric tolerance for spacings/densities. |
ties_method |
character string for ties correction. |
custom_functions |
list of custom distribution functions. |
A function that computes the objective value given parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.