yj_trans: Optimizing Yeo-Johnson Transformation

Description Usage Arguments Value Author(s)

Description

Uses nlminb to find the optimal Yeo-Johnson transformation parameters conditional on a parametric model specification.

Usage

1
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.

Author(s)

Dave Armstrong


DAMisc documentation built on Jan. 12, 2022, 1:07 a.m.