Description Usage Arguments Value Side Effects References Examples

Computes and optionally plots profile log-likelihoods for the parameter of the Box-Cox power transformation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
boxcox(object, ...)
## Default S3 method:
boxcox(object, lambda = seq(-2, 2, 1/10), plotit = TRUE,
interp, eps = 1/50, xlab = expression(lambda),
ylab = "log-Likelihood", ...)
## S3 method for class 'formula'
boxcox(object, lambda = seq(-2, 2, 1/10), plotit = TRUE,
interp, eps = 1/50, xlab = expression(lambda),
ylab = "log-Likelihood", ...)
## S3 method for class 'lm'
boxcox(object, lambda = seq(-2, 2, 1/10), plotit = TRUE,
interp, eps = 1/50, xlab = expression(lambda),
ylab = "log-Likelihood", ...)
``` |

`object` |
a formula or fitted model object. Currently only |

`lambda` |
vector of values of |

`plotit` |
logical which controls whether the result should be plotted. |

`interp` |
logical which controls whether spline interpolation is
used. Default to |

`eps` |
Tolerance for |

`xlab` |
defaults to |

`ylab` |
defaults to |

`...` |
additional parameters to be used in the model fitting. |

A list of the `lambda`

vector and the computed profile
log-likelihood vector, invisibly if the result is plotted.

If `plotit = TRUE`

plots log-likelihood *vs* `lambda`

and
indicates a 95% confidence interval about the maximum observed value
of `lambda`

. If `interp = TRUE`

, spline interpolation is
used to give a smoother plot.

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

Venables, W. N. and Ripley, B. D. (2002)
*Modern Applied Statistics with S.* Fourth edition. Springer.

1 2 3 4 5 |

```
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.