Learn R Programming

spmodel (version 0.8.0)

vcov.spmodel: Calculate variance-covariance matrix for a fitted model object

Description

Calculate variance-covariance matrix for a fitted model object.

Usage

# 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, ...)

Value

The variance-covariance matrix of coefficients obtained via coef(). Currently, only the variance-covariance matrix of the fixed effects is supported.

Arguments

object

A fitted model object from splm(), spautor(), spglm(), or spgautor().

...

Other arguments. Not used (needed for generic consistency).

var_correct

A logical indicating whether to return the corrected variance-covariance matrix for models fit using spglm() or spgautor(). The default is TRUE.

Examples

Run this code
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