Learn R Programming

⚠️There's a newer version (1.2-4) of this package.Take me there.

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.

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("aursiber/fitdistrplus")

Finally load the package in your current R session with the following R command:

library(fitdistrplus)

Documentation

Three vignettes are attached to the fitdistrplus package:

  • Overview of the fitdistrplus package
  • Which optimization algorithm to choose?
  • Frequently Asked Questions

Authors & Contacts

Issues can be reported on https://github.com/aursiber/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.

Copy Link

Version

Install

install.packages('fitdistrplus')

Monthly Downloads

54,097

Version

1.1-11

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Aurélie Siberchicot

Last Published

April 25th, 2023

Functions in fitdistrplus (1.1-11)

bootdist

Bootstrap simulation of uncertainty for non-censored data
endosulfan

Species Sensitivity Distribution (SSD) for endosulfan
danish

Danish reinsurance claim dataset
descdist

Description of an empirical distribution for non-censored data
Surv2fitdistcens

Handling of data formated as in the survival package for use in fitdistcens()
fitdist

Fit of univariate distributions to non-censored data
dataFAQ

Datasets for the FAQ
detectbound

Detect bounds for density function
bootdistcens

Bootstrap simulation of uncertainty for censored data
CIcdfplot

Empirical cumulative distribution function with pointwise confidence intervals on probabilities or on quantiles
graphcompcens

Graphical comparison of multiple fitted distributions for censored data
fitdistrplus-package

Overview of the fitdistrplus package
logLikplot

(Log)likelihood plot for a fit using maximum likelihood
groundbeef

Ground beef serving size data set
logLiksurface

(Log)likelihood surfaces or (log)likelihood curves
gofstat

Goodness-of-fit statistics
fremale

Fictive survival dataset of a french Male population
fluazinam

Species-Sensitivity Distribution (SSD) for Fluazinam
graphcomp

Graphical comparison of multiple fitted distributions (for non-censored data)
fitdistcens

Fitting of univariate distributions to censored data
mgedist

Maximum goodness-of-fit fit of univariate continuous distributions
msedist

Maximum spacing estimation of univariate distributions
salinity

Species-Sensitivity Distribution (SSD) for salinity tolerance
plotdistcens

Plot of empirical and theoretical distributions for censored data
mledist

Maximum likelihood fit of univariate distributions
mmedist

Matching moment fit of univariate distributions
prefit

Pre-fitting procedure
plotdist

Plot of empirical and theoretical distributions for non-censored data
quantile

Quantile estimation from a fitted distribution
smokedfish

Contamination data of Listeria monocytogenes in smoked fish
toxocara

Parasite abundance in insular feral cats
qmedist

Quantile matching fit of univariate distributions