yj_trans {DAMisc}R Documentation

Optimizing Yeo-Johnson Transformation

Description

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

Usage

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


[Package DAMisc version 1.7.2 Index]