yj_trans: Optimizing Yeo-Johnson Transformation

yj_transR 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


davidaarmstrong/damisc documentation built on Oct. 1, 2023, 3:05 p.m.