Function to standardize the explanatory variables