bc.model {desk}R Documentation

One Dimensional Box-Cox Model

Description

Finds lambda-values for which the one dimensional Box-Cox model has lowest SSR.

Usage

bc.model(mod, data = list(), range = seq(-2, 2, 0.1), details = FALSE)

Arguments

mod

estimated linear model object or formula.

data

if mod is a formula then the corresponding data frame has to be specified.

range

range and step size of lambda values. Default is a range from -2 to 2 at a step size of 0.1.

details

logical value indicating whether specific details about the test should be returned.

Value

A list object including:

results regression results with minimal SSR.
lambda optimal lambda-values.
nregs no. of regressions performed.
idx.opt index of optimal regression.
val.opt minimal SSR value.

Examples

y <- c(4,1,3)
x <- c(1,2,4)
my.mod <- ols(y ~ x)
bc.model(my.mod)


[Package desk version 1.1.1 Index]