| get.dist | R Documentation |
Determine best-fit distribution Identify the best-fit distribution for a univariate numeric vector
get.dist(data, my_env)
data |
Input dataset. |
my_env |
Environment object. |
...
Fits several candidate distributions via MLE and selects the model with the lowest (finite) AIC. For strictly positive data, tail-sensitive families are also tried. If a triangular fit narrowly wins (Delta AIC <= 10 over a tail model, prefer the tail model (helps avoid spurious triangular wins on mildly skewed data).
Returns a list with: - distr: best model name (e.g., "gamma", "weibull", "triangle", ...) - params: named parameter vector for the best model - aic: named numeric vector of AICs for all attempted models (NA if failed) - fits_ok: named logical vector (TRUE where fit succeeded) - messages:named list of diagnostic messages per model (errors/warnings)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.