lambda | R Documentation |
Estimates the box-cox power transformation appropriate for a linear model
lambda(bc, ...) ## S3 method for class 'formula' lambda(bc, data = sys.parent(), ..., span = 5) ## S3 method for class 'lm' lambda(bc, ..., span = 5) ## S3 method for class 'box_cox' lambda(bc, ..., span = 5) ## Default S3 method: lambda(bc, ...)
bc |
either a |
... |
additional parameters passed on to |
data |
a data frame or envinonment |
span |
integer: how many steps on either side of the maximum to use for the quadratic interpolation to find the maximum |
numeric: the maximum likelihood estimate of the exponent
lambda(medv ~ ., Boston, span = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.