mlbeta | R Documentation |
Uses stat::nlm
to estimate the parameters of the Beta distribution.
mlbeta(x, na.rm = FALSE, ...)
x |
a (non-empty) numeric vector of data values. |
na.rm |
logical. Should missing values be removed? |
... |
|
For the density function of the Beta distribution see Beta.
For type
, the option none
is fastest.
mlbeta
returns an object of class
univariateML
. This is a named numeric vector with maximum
likelihood estimates for shape1
and shape2
and the
following attributes:
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 |
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.