Transformation and Weighting in Regression