Specifying and Diagnostically Testing Econometric Models