powered by
Uses stat::nlm to estimate the parameters of the Beta distribution.
stat::nlm
mlbeta(x, na.rm = FALSE, ...)
mlbeta returns an object of class
mlbeta
univariateML. This is a named numeric vector with maximum likelihood estimates for shape1 and shape2 and the following attributes:
univariateML
shape1
shape2
model
The name of the model.
density
The density associated with the estimates.
logLik
The loglikelihood at the maximum.
support
The support of the density.
n
The number of observations.
call
The call as captured my match.call
match.call
a (non-empty) numeric vector of data values.
logical. Should missing values be removed?
Ignored.
For the density function of the Beta distribution see Beta.
For type, the option none is fastest.
type
none
Johnson, N. L., Kotz, S. and Balakrishnan, N. (1995) Continuous Univariate Distributions, Volume 2, Chapter 25. Wiley, New York.
Beta for the Beta density, nlm for the optimizer this function uses.
AIC(mlbeta(USArrests$Rape / 100))
Run the code above in your browser using DataLab