lambda {MASSExtra} | R Documentation |
Find the box-cox transform exponent estimate
Description
Estimates the box-cox power transformation appropriate for a linear model
Usage
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, ...)
Arguments
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 |
Value
numeric: the maximum likelihood estimate of the exponent
Examples
lambda(medv ~ ., Boston, span = 10)
[Package MASSExtra version 1.2.2 Index]