Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomroh/fitur
https://github.com/tomroh/fitur
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomroh/fitur
- Owner: tomroh
- License: other
- Created: 2017-01-21T15:25:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-16T22:17:13.000Z (over 2 years ago)
- Last Synced: 2024-05-01T13:29:53.361Z (6 months ago)
- Language: R
- Size: 4.22 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - tomroh/fitur - (R)
README
# fitur
[![CRAN status](https://www.r-pkg.org/badges/version/fitur)](https://CRAN.R-project.org/package=fitur)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![](http://cranlogs.r-pkg.org/badges/grand-total/fitur?color=green)](https://cran.r-project.org/package=fitur)
[![R-CMD-check](https://github.com/tomroh/fitur/workflows/R-CMD-check/badge.svg)](https://github.com/tomroh/fitur/actions)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:
```R
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.
```R
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
```