Does anyone know how to compute a test of over-identifying in a system of simultaneous equations? Sargan and Hansen tests are just used for a single equation but I need the test for the whole system of many simultaneous equations. I think there is a Hansen-Sargan test for this but I did not find any explicit reference exposing the formula.