Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mtest

Arellano–Bond Test of Serial Correlation


Description

Test of serial correlation for models estimated by GMM

Usage

mtest(object, order = 1, vcov = NULL)

Arguments

object

an object of class "pgmm",

order

the order of the serial correlation (1 or 2),

vcov

a matrix of covariance for the coefficients or a function to compute it.

Details

The Arellano–Bond test is a test of correlation based on the residuals of the estimation. By default, the computation is done with the standard covariance matrix of the coefficients. A robust estimator of this covariance matrix can be supplied with the vcov argument.

Value

An object of class "htest".

Author(s)

Yves Croissant

References

(Arellano and Bond 1991)

See Also

Examples

data("EmplUK", package = "plm")
ar <- pgmm(log(emp) ~ lag(log(emp), 1:2) + lag(log(wage), 0:1) +
           lag(log(capital), 0:2) + lag(log(output), 0:2) | lag(log(emp), 2:99),
           data = EmplUK, effect = "twoways", model = "twosteps")
mtest(ar, order = 1)
mtest(ar, order = 2, vcov = vcovHC)

plm

Linear Models for Panel Data

v2.4-1
GPL (>= 2)
Authors
Yves Croissant [aut, cre], Giovanni Millo [aut], Kevin Tappe [aut], Ott Toomet [ctb], Christian Kleiber [ctb], Achim Zeileis [ctb], Arne Henningsen [ctb], Liviu Andronic [ctb], Nina Schoenfelder [ctb]
Initial release
2021-03-02

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.