Extracts the optimization results from a model.
# S4 method for EL
getOptim(object, ...)
# S4 method for ELT
getOptim(object, ...)
# S4 method for SummaryEL
getOptim(object, ...)
# S4 method for SummaryELT
getOptim(object, ...)
# S4 method for SummaryLM
getOptim(object, ...)
Arguments
- object
An object that contains the optimization results.
- ...
Further arguments passed to methods.
Value
A list with the following optimization results:
par
A numeric vector of the parameter value. See the documentation of
EL and CEL.
lambda
A numeric vector of the Lagrange multipliers.
iterations
A single integer for the number of iterations performed.
convergence
A single logical for the convergence status.
Examples
data("precip")
fit <- el_mean(precip, par = 40)
getOptim(fit)
#> $par
#> [1] 40
#>
#> $lambda
#> [1] -0.0267627
#>
#> $iterations
#> [1] 5
#>
#> $convergence
#> [1] TRUE
#>
#> $cstr
#> [1] FALSE
#>