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, ...)

Arguments

form

A formula with a dependent variable that will be optimally scaled

data

A data frame.

trans.vars

A character string identifying the variables that should be transformed

round.digits

Number of digits to round the transformation parameters.

...

Other arguments to be passed down to lm.

Value

A linear model object that was estimated on the optimally transformed variables.