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