Description Usage Arguments Details Value See Also Examples
Fit Frechet-Weibull distribution to non-censored data
1 2 3 | fitdist_fr_wei(x, param_fr_wei = params_fr_wei(), method = c("mle",
"mme", "qme", "mge"), optim.method = "Nelder-Mead", gof = "KS",
log = FALSE, verbose = FALSE, ...)
|
x |
numeric vector |
param_fr_wei |
|
method |
fitting method, argument passed to
|
optim.method |
character |
gof |
character string compatible with the relevant
downstream function goodness of fit method,, currently
the default |
verbose |
logical indicating whether to print verbose output. |
... |
additional arguments are passed to
|
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.
object of class "fitdist"
described in
fitdistrplus::fitdist()
.
Other SALSA distribution fit functions: dfr_wei
,
fitdist_fr
, params_fr_wei
1 2 3 4 5 6 | 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));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.