Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lambda

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 "box_cox" object, a formula,data pair, a linear model object or an xy-lixt

...

additional parameters passed on to box_cox

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)

MASSExtra

Some 'MASS' Enhancements

v1.1.2
GPL-2 | GPL-3
Authors
Bill Venables
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.