Learn R Programming

prais (version 1.1.3)

vcovHC.prais: Semirobust Covariance Matrix Estimators

Description

Semirobust covariance matrix estimators for models of class "prais".

Usage

# S3 method for prais
vcovHC(x, type = c("const", "HC1", "HC0"), ...)

Value

An object of class "matrix" containing the estimate of the asymptotic covariance matrix of coefficients.

Arguments

x

an object of class "prais", usually, the result of a call to prais_winsten.

type

a character string specifying the estimation type.

...

not used.

Details

vcovHC is a function for estimating a robust covariance matrix of parameters for the Prais-Winsten estimator. The weighting schemes specified by type are analogous to those in vcovHC in package sandwich with the caveat that only "const", "HC0" and "HC1" are available.

See Also

vcovHC