Uses nlminb
to find the optimal Yeo-Johnson transformation parameters
conditional on a parametric model specification.
yj_trans(form, data, trans.vars, round.digits = 3, ...)
A formula with a dependent variable that will be optimally scaled
A data frame.
A character string identifying the variables that should be transformed
Number of digits to round the transformation parameters.
Other arguments to be passed down to lm
.
A linear model object that was estimated on the optimally transformed variables.