Learn R Programming

RcmdrMisc (version 2.7-0)

DeltaMethod: Confidence Intervals by the Delta Method

Description

DeltaMethod is a wrapper for the deltaMethod function in the car package. It computes the asymptotic standard error of an arbitrary, usually nonlinear, function of model coefficients, which are named b0 (if there is an intercept in the model), b1, b2, etc., and based on the standard error, a confidence interval based on the normal distribution.

Usage

DeltaMethod(model, g, level = 0.95)
# S3 method for DeltaMethod
print(x, ...)

Arguments

model

a regression model; see the deltaMethod documentation.

g

the expression --- that is, function of the coefficients --- to evaluate, as a character string.

level

the confidence level, defaults to 0.95.

x

an object of class "DeltaMethod".

...

optional arguments to pass to print to show the results.

Value

DeltaMethod returns an objects of class "DeltaMethod", for which a print method is provided.

See Also

deltaMethod function in the car package

Examples

Run this code
# NOT RUN {
if (require(car)){
  DeltaMethod(lm(prestige ~ income + education, data=Duncan), "b1/b2")
  }
# }

Run the code above in your browser using DataLab