fit_distribution: Fit distribution

View source: R/fit_dist.R

fit_distributionR Documentation

Fit distribution

Description

Function fit_distribution fit one of Gamma, Log-normal, Pareto, Exponential, Weibull or GEV distribution to your vector.

Usage

fit_distribution(param)

Arguments

param

rainfall parameter to fit (one of precipitation depth or time)

Value

two graphs illustrating the level of fit histogram with theoretical density function and empirical and theoretical CDFs, result table of fit tests and best parameters of fitted distribution.

Examples

x <- rgamma(100, shape = 12, rate = 0.2)
fit_distribution(x)
x <- rlnorm(50, meanlog = 3, sdlog = 1)
fit_distribution(x)

dax44/OvfSim documentation built on April 29, 2022, 6:53 a.m.