Principal components regression estimator and a test for the restrictions