Help to Fit of a Parametric Distribution to Non-Censored or Censored Data
fitdistrplus extends the fitdistr() function (of the MASS package) with several functions to help the fit of a parametric distribution to non-censored or censored data. Censored data may contain left censored, right censored and interval censored values, with several lower and upper bounds. In addition to maximum likelihood estimation (MLE), the package provides moment matching (MME), quantile matching (QME) and maximum goodness-of-fit estimation (MGE) methods (available only for non-censored data). Weighted versions of MLE, MME and QME are available.
fitdistrplus allows to fit any probability distribution provided by the user and not restricted to base R distributions (see ?Distributions). We strongly encourage users to visit the CRAN task view
on Distributions proposed by Dutang, Kiener & Swihart (2024).
The package
The stable version of fitdistrplus can be installed from CRAN using:
install.packages("fitdistrplus")
The development version of fitdistrplus can be installed from GitHub (remotes needed):
if (!requireNamespace("remotes", quietly = TRUE))
install.packages("remotes")
remotes::install_github("lbbe-software/fitdistrplus")
Finally load the package in your current R session with the following R command:
require("fitdistrplus")
Documentation
Four vignettes are attached to the fitdistrplus package. Two of them are for beginners
Help to Fit of a Parametric Distribution to Non-Censored or Censored Data
fitdistrplusextends thefitdistr()function (of theMASSpackage) with several functions to help the fit of a parametric distribution to non-censored or censored data. Censored data may contain left censored, right censored and interval censored values, with several lower and upper bounds. In addition to maximum likelihood estimation (MLE), the package provides moment matching (MME), quantile matching (QME) and maximum goodness-of-fit estimation (MGE) methods (available only for non-censored data). Weighted versions of MLE, MME and QME are available.fitdistrplusallows to fit any probability distribution provided by the user and not restricted to base R distributions (see?Distributions). We strongly encourage users to visit the CRAN task view on Distributions proposed by Dutang, Kiener & Swihart (2024).The package
The stable version of
fitdistrpluscan be installed from CRAN using:The development version of
fitdistrpluscan be installed from GitHub (remotesneeded):Finally load the package in your current R session with the following R command:
Documentation
Four vignettes are attached to the
fitdistrpluspackage. Two of them are for beginnersThe last two vignettes deal with advanced topics
Authors & Contacts
Please read the FAQ before contacting authors
marielaure.delignettemuller<<@))vetagro-sup.frdutangc<<@))gmail.comaurelie.siberchicot<<@))univ-lyon1.frIssues can be reported on fitdistrplus-issues.
Citation
If you use
fitdistrplus, you should cite:Marie Laure Delignette-Muller, Christophe Dutang (2015). fitdistrplus: An R Package for Fitting Distributions. Journal of Statistical Software. https://www.jstatsoft.org/article/view/v064i04 DOI 10.18637/jss.v064.i04.