autotransfuncQF {AutoTransQF}R Documentation

Transforms Individual Vectors into Normality

Description

This function transforms individual vectors into normality. Paper from Feng et al. (2016) includes more details about the transformation mechanism.

Usage

autotransfuncQF(vari, istat, paraindex)

Arguments

vari

a vector needs to be transformed

istat

a value representing the type of test statistic for evaluation of normality of the transformed vector. If istat = 1, Anderson-Darling test statistic is chosen; if istat = 2, standard skewness statistic is chosen.

paraindex

a value delivered to calculate the specific shift parameter beta

Value

Returns a transformed vector with the shift parameter calculated by the input paraindex

Author(s)

Yue Hu, Hyeon Lee, J. S. Marron

References

Feng, Q. , Hannig J. , Marron, J. S. (2016). A Note on Automatic Data Transformation. STAT, 5, 82-87. doi: 10.1002/sta4.104

See Also

ADStatQF, AutoTransQF

Examples

## Generate a vector vec from Gamma distribution with parameters shape 1 and scale 2.
vec = rgamma(50, shape = 1, scale = 2)

## Choose Anderson-Darling test statistic for transformed vector.
## Assign paraindex to be 0.9.
autotransfuncQF(vec, istat = 1, paraindex = 0.9)

## Choose skewness for transformed vector
## Assign paraindex to be 0.9
autotransfuncQF(vec, istat = 2, paraindex = 0.9)

[Package AutoTransQF version 0.1.3 Index]