powered by
Estimates the box-cox power transformation appropriate for a linear model
lambda(bc, ...)# S3 method for formula lambda(bc, data = sys.parent(), ..., span = 5)# S3 method for lm lambda(bc, ..., span = 5)# S3 method for box_cox lambda(bc, ..., span = 5)# S3 method for default lambda(bc, ...)
# S3 method for formula lambda(bc, data = sys.parent(), ..., span = 5)
# S3 method for lm lambda(bc, ..., span = 5)
# S3 method for box_cox lambda(bc, ..., span = 5)
# S3 method for default lambda(bc, ...)
numeric: the maximum likelihood estimate of the exponent
either a "box_cox" object, a formula,data pair, a linear model object or an xy-lixt
"box_cox"
additional parameters passed on to box_cox
box_cox
a data frame or envinonment
integer: how many steps on either side of the maximum to use for the quadratic interpolation to find the maximum
lambda(medv ~ ., Boston, span = 10)
Run the code above in your browser using DataLab