wald: Wald confidence interval

Description Usage Arguments Details Value Author(s) See Also

View source: R/wald.R

Description

Functions to calculate the Wald confidence interval of an MLE

Usage

1
wald(mle, hessian, alpha = 0.05, marginal = TRUE)

Arguments

mle

maximum likelihood parameter estimate

hessian

estiamte of the Hessian at the MLE

alpha

critical value

marginal

logical, should marginal CI be calculated for each parameter or should an ellipse be calculated simultaneously for all parameters

Details

Can calcuate either a Wald CI for a single parameter or multiple parameters. The mle and hessian arguments can be obtained from numerical optimization of the likelihood function using, e.g., optim or nlm

Value

A matrix of either the upper and lower confidence limits (for marginal=TRUE) or a matrix with x,y coordinates fo the ellipse (for marginal=FALSE)

Author(s)

Andy Rominger <ajrominger@gmail.com>

See Also

optim, nlm


ajrominger/socorro documentation built on Jan. 3, 2020, 6:25 a.m.