Learn R Programming

rriskDistributions (version 2.1.1)

useFitdist: Fitting amount continuous distributions to given univariate data.

Description

Fitting amount continuous distributions to given univariate data

Usage

useFitdist(data2fit, show.output = TRUE, distributions)

Arguments

data2fit
numerical vector, data to be fitted.
show.output
logical value, if TRUE the output will be printed.
distributions
simple character or character vector giving the names of distribution families, that should be fitted to the data. The possible values are: norm, cauchy, logis, beta, exp, chisq, unif, gamma, lnorm, weibull, f, t, gompertz, triang.

Value

Returns matrix with fitting results. More information...

Details

This function is not intended to be called directly but is internally called in fit.cont.

Examples

Run this code
x1 <- rgamma(374, 4,0.08)
res1 <- useFitdist(data2fit = x1)
res1

x2 <- rbeta(300, shape1 = 1, shape2 = 2)
res2 <- useFitdist(data2fit = x2)
res2

Run the code above in your browser using DataLab