bc.model | R Documentation |
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)
mod |
estimated linear model object or formula. |
data |
if |
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. |
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. |
y <- c(4,1,3)
x <- c(1,2,4)
my.mod <- ols(y ~ x)
bc.model(my.mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.