For the density function of the Weibull distribution see Weibull.
Arguments
- x
a (non-empty) numeric vector of data values.
- na.rm
logical. Should missing values be removed?
- ...
shape0is an optional starting value for theshapeparameter.reltolis the relative accuracy requested, defaults to.Machine$double.eps^0.25.iterlimis a positive integer specifying the maximum number of iterations to be performed before the program is terminated (defaults to100).
Value
mlweibull returns an object of class univariateML.
This is a named numeric vector with maximum likelihood estimates for
shape and scale and the following attributes:
modelThe name of the model.
densityThe density associated with the estimates.
logLikThe loglikelihood at the maximum.
supportThe support of the density.
nThe number of observations.
callThe call as captured my
match.call
Details
Uses mlgumbel to estimate the parameters of the Weibull distribution.
References
Johnson, N. L., Kotz, S. and Balakrishnan, N. (1995) Continuous Univariate Distributions, Volume 1, Chapter 21. Wiley, New York.
See also
Weibull for the Weibull density.
Examples
BIC(mlweibull(precip))
#> [1] 573.3096
