Learn R Programming

r6qualitytools (version 1.0.1)

distribution: distribution: Distribution

Description

Calculates the most likely parameters for a given distribution.

Usage

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

Value

distribution() returns an object of class DistrCollection.

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.

See Also

Distr, DistrCollection

Examples

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

Run the code above in your browser using DataLab