Fit Frechet-Weibull distribution to non-censored data
fitdist_fr_wei(x, param_fr_wei = params_fr_wei(), method = "mle", optim.method = "Nelder-Mead", log = FALSE, verbose = FALSE, ...)
x | numeric vector |
---|---|
param_fr_wei |
|
method | fitting method, argument passed to
|
optim.method | character |
verbose | logical indicating whether to print verbose output. |
... | additional arguments are passed to
|
object of class "fitdist"
described in
fitdistrplus::fitdist()
.
This function is a simple wrapper around fitdistrplus::fitdist()
for the five-parameter Frechet-Weibull distribution.
Most customizations are performed by the corresponding
support function, for example when method="mle"
the
distribution fit function is fitdistrplus::mledist()
,
which then calls stats::optim()
. Arguments are
passed to these functions using ...
where applicable.
TODO: This function currently expects to use method="mle"
which utilizes the upper,lower,start parameters for each
of the five parameters. Other methods may have different
requirements which are not formally handled. In future
we will evaluate and support additional methods, modifying
the call to fitdistrplus::fitdist()
as needed.
Other SALSA distribution fit functions: dfr_wei
,
fitdist_fr
, params_fr_wei
library(salsa); data(oz2_numi_per_cell); x <- oz2_numi_per_cell$count[oz2_numi_per_cell$count >= 16]; fit_fr_wei <- fitdist_fr_wei(x); # print coefficients print(coef(fit_fr_wei));#> fr_weight fr_shape fr_scale wei_shape wei_scale #> 0.99000 1.50000 25.24369 1.51412 1775.74196