Description Usage Arguments Details Value See Also Examples
Get the standard error of the estimates of the model
parameters.
1 |
model |
an estimated model returned by |
vce |
an object indicating how to obtain the covariance matrix. |
The parameter vce
controls how the covariance matrix of estimates is computed:
If vce
is NULL
(the default), the covariance matrix is computed using
vcov
: vcov(model)
.
vce
can be a string that indicates which type of covariance matrix is used.
Covariance matrices robust to heteroskedasticity are computed with vce = "HC"
.
Other variants valid under heteroskedasticity are "HC0", "HC1", "HC2" and "HC3"
(which is equivalent to "HC"). Newey and West proposed a covariance matrix
estimator valid under autocorrelation and heteroskedasticity. This estimator
is computed by setting vce
equal to "NW" or "HAC".
vce
can also be a function. In that case the covariance matrix is
estimated by calling that function: vce(model)
.
Finally, a covariance matrix can be passed directly to vce
.
The model
object should support the coef
and
vcov
methods.
A named vector with the standard errors of the estimates.
sandwich::vcovHC, sandwich::NeweyWest.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.