powered by
Calculates the most likely parameters for a given distribution.
distribution(x = NULL, distrib = "weibull", ...)
distribution() returns an object of class DistrCollection.
distribution()
DistrCollection
Vector of distributed values from which the parameter should be determined.
Character string specifying the distribution of x. The function distribution will accept the following character strings for distribution:
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.
Distr, DistrCollection
Distr
data1 <- rnorm(100, mean = 5, sd = 2) distribution(data1, distrib = "normal")
Run the code above in your browser using DataLab