Fit Univariate Distributions

Wrapper for computing parameters for univariate distributions using MLE. It creates an object that stores d, p, q, r functions as well as parameters and statistics for diagnostics. Currently supports automated fitting from base and actuar packages. A manually fitting distribution fitting function is included to support directly specifying parameters for any distribution from ancillary packages.


Wrapper for computing parameters for univariate distributions using MLE. It creates an object that stores d, p, q, r functions as well as parameters and statistics for diagnostics. Currently supports automated fitting from base and actuar packages. A manually fitting distribution fitting function is included to support directly specifying parameters for any distribution from ancillary packages.

Installation

You can install fitur from CRAN or github with:

install.packages('fitur')
devtools::install_github("tomroh/fitur")

Example

This is a basic example to fit a poisson distribution with estimated parameters and return the functions for it.

set.seed(562)
x <- rpois(100, 1)
fittedPois <- fit_univariate(x, 'pois', 'discrete')
fittedPois$dpois(1)
fittedPois$ppois(1)
fittedPois$qpois(.5)
fittedPois$rpois(100)
fittedPois$parameters

News

fitur 0.6.1

  • shiny gadget for fitting univariate distributions has been added

  • added test function for distfun objects

  • diagnostic plots now have better checks for distfun objects and lists of distfun objects

fitur 0.6.0

  • Adding continuous distribution testing functions Kolmogorov-Smirnov, Anderson-Darling, and Cramer-Von Mises

  • S3 methods have now been added for distfit objects

  • Code reformatting and cleanup

fitur 0.5.25

  • Fixed appearance of plots

  • Added plot_density function for comparison pdfs of fitted functions

  • Updated argument naming conventions

fitur 0.5.20

  • DESCRIPTION summary has been updated

  • Examples have been updated for fit_univariate, fit_empirical

  • fit_empirical_discrete and fit_empirical_continuous are no longer exported

  • added plot_qq and plot_pp functions for diagnostic plotting of fits

  • Added a vignette Diagnostic Plots for Fitting Distributions

  • Introduction vignette has updated examples

fitur 0.5.0

  • Update DESCRIPTION

  • Parameter name error checking for fit_univariate_manual

  • Fixed bug so that empirical distributions functions are now vectorized

  • Consolidated fitting empirical distributions into one function

  • Fixed vignette title

  • Added BugReports to Description

fitur 0.4.0

  • Added fit_univariate_man for manually specifying parameters and generating a distribution

  • Added function to summarize statistics for distribution inspection

  • Added documentation for supported univariate distributions

fitur 0.3.0

  • Changed naming of fitted distribution object (output of fit_univariate) to be more explicit e.g. 'd' is now 'dpois' for a fitting a poisson distribution

  • Added 'parameters' list item to a fitted distribution object (output of fit_univariate)

fitur 0.2.0

  • Added Discrete Uniform distribution functions and ability to fit discrete uniform

  • Added cauchy, llogis, logis, invweibull, invgamma to continous distributions that can be fit

fitur 0.1.0

  • Added a NEWS.md file to track changes to the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("fitur")

0.6.1 by Thomas Roh, a year ago


https://github.com/tomroh/fitur


Report a bug at https://github.com/tomroh/fitur/issues


Browse source code at https://github.com/cran/fitur


Authors: Thomas Roh [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports stats, fitdistrplus, actuar, e1071, ggplot2, goftest, shiny, miniUI, rstudioapi, DT

Suggests knitr, rmarkdown


See at CRAN