Page 318 - Applied Statistics with R
P. 318

318                              CHAPTER 14. TRANSFORMATIONS









                                       4

                                       2
                                   Residuals  0





                                       -2

                                       -4

                                                     5                 10               15

                                                                   Fitted

















                                 The resulting fitted versus residuals plot looks much better!






                                 Lastly, we return to the initech data, and the initech_fit model we had
                                 used earlier. Recall, that this was the untransformed model, that we used a log
                                 transform to fix.






                                 boxcox(initech_fit)
   313   314   315   316   317   318   319   320   321   322   323