box_cox {MASSExtra} | R Documentation |
Box-cox constructor function
Description
A front-end to boxcox
with slicker display and better defaults
Usage
box_cox(object, ...)
## S4 method for signature 'formula'
box_cox(object, data = sys.parent(), ...)
## S4 method for signature 'lm'
box_cox(object, ..., plotit, flap = 0.4)
## S3 method for class 'box_cox'
plot(
x,
...,
las = 1,
xlab = expression(lambda),
ylab,
col.lines = "steel blue"
)
## S3 method for class 'box_cox'
print(
x,
...,
las = 1,
xlab = expression(lambda),
ylab,
col.lines = "steel blue"
)
Arguments
object |
either a |
... |
additional arguments passed on to methods |
data |
a data frame or environment |
plotit |
currently ignored. Plotting is done by |
flap |
fraction of the central 95% notional confidence to expand the range of lambda for the display |
x |
a |
xlab , ylab , las |
as for |
col.lines |
colour to use for indicator lines in the display |
Value
an object of class "box_cox"
Examples
box_cox(MPG.city ~ Weight, Cars93)
[Package MASSExtra version 1.2.2 Index]