Presentation is loading. Please wait.

Presentation is loading. Please wait.

More on data transformations No recipes, but some advice.

Similar presentations


Presentation on theme: "More on data transformations No recipes, but some advice."— Presentation transcript:

1 More on data transformations No recipes, but some advice.

2 If the primary problem is non-linearity, look at a scatter plot of the data to suggest plausible transformations. It is possible to use transformations other than ln(x) and ln(y).

3 Try fitting if the trend in your data follows either of these patterns.

4 Try fitting if the trend in your data follows either of these patterns.

5 Try fitting if the trend in your data follows either of these patterns.

6 Try fitting if the trend in your data follows either of these patterns.

7 Try fitting if the trend in your data follows any of these patterns.

8 If the variances are unequal and/or error terms are not normal, try a “power transformation” on y.

9 Family of power transformations A power transformation on y involves transforming the response by taking it to some power λ. That is: Most commonly, for interpretation reasons, λ is a number between -1 and 2, such as -1, -0.5, 0, 0.5, (1), 1.5, and 2. When λ = 0, the transformation is taken to be the natural log transformation. That is:

10 If the variances are unequal, try “stabilizing the variance” by transforming y.

11 If the response y is a Poisson count… A common (now archaic?) recommendation is to transform the response using the square root transformation: and stay within the linear regression framework. Perhaps, now, the advice should be to use Poisson regression.

12 If the response y is a binomial proportion... A common (now archaic?) recommendation is to transform the response using the arcsine transformation: and stay within the linear regression framework. Perhaps, now, the advice should be to use a form of logistic regression.

13 If the response y isn’t anything special… A common recommendation is to try the natural log transformation: Or the reciprocal transformation:

14 It’s okay to remove some data points to make the transformation work better. Just make sure you report the scope of the model.

15 It’s better to give up some model fit than to lose clear interpretations. Just make sure you report that that’s what you did.


Download ppt "More on data transformations No recipes, but some advice."

Similar presentations


Ads by Google