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

sargan

Hansen–Sargan Test of Overidentifying Restrictions


Description

A test of overidentifying restrictions for models estimated by GMM.

Usage

sargan(object, weights = c("twosteps", "onestep"))

Arguments

object

an object of class "pgmm",

weights

the weighting matrix to be used for the computation of the test.

Details

The Hansen–Sargan test calculates the quadratic form of the moment restrictions that is minimized while computing the GMM estimator. It follows asymptotically a chi-square distribution with number of degrees of freedom equal to the difference between the number of moment conditions and the number of coefficients.

Value

An object of class "htest".

Author(s)

Yves Croissant

References

(Hansen 1982)

(Sargan 1958)

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")
sargan(ar)

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.