Generic function for testing the specification of estimated models. It computes the J-test from gmm objects and J-test, LR-test and LM-test from gel objects.
## S3 method for class 'gmm'specTest(x,...)## S3 method for class 'gel'specTest(x,...)## S3 method for class 'specTest'print(x, digits =5,...)specTest(x,...)
Arguments
x: A fitted model object.
digits: The number of digits to be printed.
...: Arguments passed to methods.
Returns
Tests and p-values
References
Hansen, L.P. (1982), Large Sample Properties of Generalized Method of Moments Estimators. Econometrica, 50 , 1029-1054,
Smith, R. J. (2004), GEL Criteria for Moment Condition Models. CeMMAP working papers, Institute for Fiscal Studies