Learn R Programming

slm (version 1.2.0)

vcov.slm: Calculate Variance-Covariance Matrix for a Fitted Model Object of class slm

Description

Returns the variance-covariance matrix of the (non-normalized) least squares estimators for an object of class slm.

Usage

# S3 method for slm
vcov(object, ...)

Arguments

object

a fitted model object of class slm.

...

additional arguments for method functions.

Value

The variance-covariance matrix of the (non-normalized) least squares estimators for an object of class slm.

See Also

The generic function vcov.

The function cov_matrix_estimator.

Examples

Run this code
# NOT RUN {
 n = 500
 eps = generative_process(n,"AR1",c(0.7))
 X = as.matrix(generative_model(n,"mod2"))
 Y = 3 + 2*X[,2] + eps
 reg = slm(Y ~ X, method_cov_st = "fitAR", model_selec = -1)
 vcov(reg)
# }

Run the code above in your browser using DataLab