Calcluates and plots log-liklihoods lambda for power transformation of response variable. Reports chi-square test of lambda <> 1. All values of Y must > 0 or function will crash. Add offset to Y if necessary (see example). Default lambda range is -2 to 2. Uses boxCox() from car package.

1 | ```
modelBoxCox(Model, Lambdas = seq(-2, 2, by = 0.1))
``` |

`Model` |
an unweighted linear model, produced by |

`Lambdas` |
a vector of lambda values to plot. Default is seq(-2,2,by=0.1) |

John J. Curtin jjcurtin@wisc.edu

Box, G. E. P. & Cox, D. R. (1964). An analysis of transformations (with discussion). Journal of the Royal Statistical Society, 26, 211-252.

boxCox(), boxcox()

1 2 | ```
m = lm(interlocks + 1 ~ assets+nation, data=Ornstein)
modelBoxCox(m)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.