fixed check for equality of explanatory and predictor variables