DeltaMethod {RcmdrMisc} | R Documentation |
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 class 'DeltaMethod'
print(x, ...)
Arguments
model |
a regression model; see the |
g |
the expression — that is, function of the coefficients — to evaluate, as a character string. |
level |
the confidence level, defaults to |
x |
an object of class |
... |
optional arguments to pass to |
Value
DeltaMethod
returns an objects of class "DeltaMethod"
, for which a print
method is provided.
Author(s)
John Fox jfox@mcmaster.ca
See Also
deltaMethod
function in the car package
Examples
if (require(car)){
DeltaMethod(lm(prestige ~ income + education, data=Duncan), "b1/b2")
}