View source: R/confint.maxLik.R
confint.maxLik | R Documentation |
Wald confidence intervals for Maximum Likelihood Estimates
## S3 method for class 'maxLik'
confint(object, parm, level=0.95, ...)
object |
object of class “maxLik” returned by |
parm |
the name of parameters to compute the confidence intervals. If omitted, confidence intervals for all parameters are computed. |
level |
the level of confidence interval |
... |
additional arguments to be passed to the other methods |
A matrix of lower and upper confidence interval limits (in the first and second column respectively). The matrix rows are labeled by the parameter names (if any) and columns by the corresponding distribution quantiles.
Luca Scrucca
confint
for the generic confint
function,
stdEr
for computing standard errors and
summary
for summary output that includes statistical
significance information.
## compute MLE parameters of normal random sample
x <- rnorm(100)
loglik <- function(theta) {
dnorm(x, mean=theta[1], sd=theta[2], log=TRUE)
}
m <- maxLik(loglik, start=c(mu=0, sd=1))
summary(m)
confint(m)
confint(m, "mu", level=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.