distribution: distribution: Distribution

View source: R/1.3_Distr_DistrCollection_Functions.R

distributionR Documentation

distribution: Distribution

Description

Calculates the most likely parameters for a given distribution.

Usage

distribution(x = NULL, distrib = "weibull", ...)

Arguments

x

Vector of distributed values from which the parameter should be determined.

distrib

Character string specifying the distribution of x. The function distribution will accept the following character strings for distribution:

  • `normal`

  • `chi-squared`

  • `exponential`

  • `logistic`

  • `gamma`

  • `weibull`

  • `cauchy`

  • `beta`

  • `f`

  • `t`

  • `geometric`

  • `poisson`

  • `negative binomial`

  • `log-normal`

By default, distribution is set to `weibull`.

...

Additional arguments to be passed to the fitting function.

Value

distribution() returns an object of class DistrCollection.

See Also

Distr, DistrCollection

Examples

data1 <- rnorm(100, mean = 5, sd = 2)
distribution(data1, distrib = "normal")

r6qualitytools documentation built on Oct. 4, 2024, 1:09 a.m.