View source: R/autotransfuncQF.R
autotransfuncQF | R Documentation |
This function transforms individual vectors into normality. Paper from Feng et al. (2016) includes more details about the transformation mechanism.
autotransfuncQF(vari, istat, paraindex)
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 |
paraindex |
a value delivered to calculate the specific shift parameter beta |
Returns a transformed vector with the shift parameter calculated by the input paraindex
Yue Hu, Hyeon Lee, J. S. Marron
Feng, Q. , Hannig J. , Marron, J. S. (2016). A Note on Automatic Data Transformation. STAT, 5, 82-87. doi: 10.1002/sta4.104
ADStatQF
, AutoTransQF
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.