mtrans {LearnEDA}R Documentation

Matched transformation

Description

Computes a matched power transformation on data that preserves the median.

Usage

mtrans(d,p)

Arguments

d numeric vector of values
p power of transformation

Value

vector of values of matched transformation

Author(s)

Jim Albert

Examples

data(state)
raw=state.x77[,"Population"]
matched.roots=mtrans(raw,0.5)
matched.logs=mtrans(raw,0)
boxplot(data.frame(raw,matched.roots,matched.logs))

[Package LearnEDA version 1.01 Index]