Ajdbeta(X, starts = list(shape1 = 1, shape2 = 1), leve = 0.95)optim optimizer is used to find the minimum of the negative log-likelihood. An approximate covariance matrix for the parameters is obtained by inverting the Hessian matrix at the optimum.
For more detail consulted mle,confint,AIC.
R has the [dqpr]beta functions to evaluate the density, the quantiles, and the cumulative distribution or generate pseudo random numbers from the beta distribution.Ajdexp Adjustment By Exponential Distribution,Ajdf Adjustment By F Distribution,
Ajdgamma Adjustment By Gamma Distribution,Ajdlognorm Adjustment By Log Normal Distribution,
Ajdnorm Adjustment By Normal Distribution,Ajdt Adjustment By Student t Distribution,
Ajdweibull Adjustment By Weibull Distribution,Ajdchisq Adjustment By Chi-Squared Distribution.X <- rbeta(1000,shape1 = 1, shape2 = 3)
Ajdbeta(X, starts = list(shape1 = 1, shape2 = 1), leve = 0.95)Run the code above in your browser using DataLab