lmBoxCox: Box Cox transformation for linear models

View source: R/lmBoxCox.R

lmBoxCoxR Documentation

Box Cox transformation for linear models

Description

Ouptut the linear model fitted on the Box-Cox transformed outcome

Usage

lmBoxCox(formula, data, trace = TRUE, ...)

Arguments

formula

same as lm

data

same as lm

trace

should the execution of the function be traced

...

other arguments to be passed to lm

Examples

if(require(lava)){
df <- lava::sim(lvm(Y ~ X1 + X2),1e2)
df$Y <- df$Y-min(df$Y)+1
lm(Y~X1+X2, data = df)
lmBoxCox(Y~X1+X2, data = df)
#' 
}


bozenne/butils documentation built on Oct. 14, 2023, 6:19 a.m.