powered by
Calculate variance-covariance matrix for a fitted model object.
# S3 method for splm vcov(object, ...)# S3 method for spautor vcov(object, ...)# S3 method for spglm vcov(object, var_correct = TRUE, ...)# S3 method for spgautor vcov(object, var_correct = TRUE, ...)
# S3 method for spautor vcov(object, ...)
# S3 method for spglm vcov(object, var_correct = TRUE, ...)
# S3 method for spgautor vcov(object, var_correct = TRUE, ...)
The variance-covariance matrix of coefficients obtained via coef(). Currently, only the variance-covariance matrix of the fixed effects is supported.
coef()
A fitted model object from splm(), spautor(), spglm(), or spgautor().
splm()
spautor()
spglm()
spgautor()
Other arguments. Not used (needed for generic consistency).
A logical indicating whether to return the corrected variance-covariance matrix for models fit using spglm() or spgautor(). The default is TRUE.
TRUE
spmod <- splm(z ~ water + tarp, data = caribou, spcov_type = "exponential", xcoord = x, ycoord = y ) vcov(spmod)
Run the code above in your browser using DataLab