Consistent selection of explanatory variables