powered by
Finds lambda-values for which the one dimensional Box-Cox model has lowest SSR.
bc.model(mod, data = list(), range = seq(-2, 2, 0.1), details = FALSE)
A list object including:
results
lambda
nregs
idx.opt
val.opt
estimated linear model object or formula.
if mod is a formula then the corresponding data frame has to be specified.
mod
range and step size of lambda values. Default is a range from -2 to 2 at a step size of 0.1.
logical value indicating whether specific details about the test should be returned.
y <- c(4,1,3) x <- c(1,2,4) my.mod <- ols(y ~ x) bc.model(my.mod)
Run the code above in your browser using DataLab