box_cox: Box-cox constructor function

Description Usage Arguments Value Examples

Description

A front-end to boxcox with slicker display and better defaults

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 "box_cox" object, a formula,data pair, a linear model object or an xy-lixt

...

additional arguments passed on to methods

data

a data frame or environment

plotit

currently ignored. Plotting is done by plot or print methods

flap

fraction of the central 95% notional confidence to expand the range of lambda for the display

x

a "box_cox" object to be displayed

xlab, ylab, las

as for plot

col.lines

colour to use for indicator lines in the display

Value

an object of class "box_cox"

Examples

1
box_cox(MPG.city ~ Weight, Cars93)

BillVenables/MASSExtra documentation built on March 8, 2021, 7:18 p.m.