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)
A function that computes the objective value given parameters.
character string: "mle" or "mps".
numeric vector of sorted data.
character string specifying the distribution.
numeric tolerance for spacings/densities.
character string for ties correction.
list of custom distribution functions.