lmBoxCox | R Documentation |
Ouptut the linear model fitted on the Box-Cox transformed outcome
lmBoxCox(formula, data, trace = TRUE, ...)
formula |
same as lm |
data |
same as lm |
trace |
should the execution of the function be traced |
... |
other arguments to be passed to lm |
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)
#'
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.