vcov.felm {capybara} | R Documentation |
Covariance matrix for LMs
Description
Covariance matrix for the estimator of the structural parameters
from objects returned by felm
. The covariance is computed
from the hessian, the scores, or a combination of both after convergence.
Usage
## S3 method for class 'felm'
vcov(
object,
type = c("hessian", "outer.product", "sandwich", "clustered"),
...
)
Arguments
object |
an object of class |
type |
the type of covariance estimate required. |
... |
additional arguments. |
Value
A named matrix of covariance estimates.
See Also
Examples
# same as the example in felm but extracting the covariance matrix
mod <- felm(log(mpg) ~ log(wt) | cyl | am, mtcars)
vcov(mod, type = "clustered")
[Package capybara version 1.0.1 Index]