This function does not estimate the scale parameter for the BetaPrime
distribution. Transforms the data and uses stat::nlm to estimate
the parameters of the Beta distribution.
Arguments
- x
a (non-empty) numeric vector of data values.
- na.rm
logical. Should missing values be removed?
- ...
passed to
mlbeta.
Value
mlbetapr returns an object of class univariateML.
This is a named numeric vector with maximum likelihood estimates for
shape1 and shape2 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
For the density function of the Beta prime distribution see BetaPrime.
For type, the option none is fastest.
References
Johnson, N. L., Kotz, S. and Balakrishnan, N. (1995) Continuous Univariate Distributions, Volume 2, Chapter 25. Wiley, New York.
Examples
AIC(mlbetapr(USArrests$Rape))
#> [1] 363.8231
