confint.maxLik: confint method for maxLik objects

Description Usage Arguments Value Author(s) See Also Examples

View source: R/confint.maxLik.R

Description

Wald confidence intervals for Maximum Likelihood Estimates

Usage

1
2
## S3 method for class 'maxLik'
confint(object, parm, level=0.95,  ...)

Arguments

object

object of class “maxLik” returned by maxLik function

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

Value

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.

Author(s)

Luca Scrucca

See Also

confint for the generic confint function, stdEr for computing standard errors and summary for summary output that includes statistical significance information.

Examples

1
2
3
4
5
6
7
8
9
## 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)

maxLik documentation built on July 27, 2021, 1:07 a.m.