Learn R Programming

dendrometry (version 0.0.4)

fit_optimization: Unified Optimization-based Estimation (MPS and MLE)

Description

Internal function that performs parameter estimation using optimization-based methods (Maximum Likelihood or Maximum Product Spacing).

Usage

fit_optimization(
  x,
  dist,
  method,
  start,
  lower,
  upper,
  optim_method,
  custom_functions,
  tol_spacing,
  tol_param,
  ties_method,
  ...
)

Value

A list containing parameter estimates, standard errors, objective value, log-likelihood, AIC, BIC, KS test results, and convergence information.

Arguments

x

numeric vector of sorted data.

dist

character string specifying the distribution.

method

character string: "mle" or "mps".

start

initial parameter values.

lower

lower bounds for parameters.

upper

upper bounds for parameters.

optim_method

optimization method for optim.

custom_functions

list of custom distribution functions.

tol_spacing

numeric tolerance for spacings/densities.

tol_param

numeric tolerance for parameter bounds.

ties_method

character string for ties correction method.

...

additional arguments for optim.