mtrans: Matched transformation

Description Usage Arguments Value Author(s) Examples

View source: R/mtrans.R

Description

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

Usage

1
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

1
2
3
4
5
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))

bayesball/LearnEDAfunctions documentation built on Sept. 20, 2020, 2:45 p.m.