I have the correct package alr4 which contains cars so it shouldn\'t be a problem with the function itself
box <- lm(Distance~Speed, data = stop) boxCox(box)