DeltaMethod | R Documentation |
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.
DeltaMethod(model, g, level = 0.95)
## S3 method for class 'DeltaMethod'
print(x, ...)
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 |
DeltaMethod
returns an objects of class "DeltaMethod"
, for which a print
method is provided.
John Fox jfox@mcmaster.ca
deltaMethod
function in the car package
if (require(car)){
DeltaMethod(lm(prestige ~ income + education, data=Duncan), "b1/b2")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.