Ajdnorm(X, starts = list(mean = 1, sd = 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]norm functions to evaluate the density, the quantiles, and the cumulative distribution or generate pseudo random numbers from the normal distribution.Ajdchisq Adjustment By Chi-Squared Distribution,Ajdexp Adjustment By Exponential Distribution,
Ajdf Adjustment By F Distribution,AjdgammaAdjustment By Gamma Distribution,
Ajdlognorm Adjustment By Log Normal Distribution,Ajdt Adjustment By Student t Distribution,
Ajdweibull Adjustment By Weibull Distribution,Ajdbeta Adjustment By Beta Distribution.X <- rnorm(1000,4,0.5)
Ajdnorm(X, starts = list(mean = 1, sd = 1), leve = 0.95)Run the code above in your browser using DataLab