Johnson-package: Johnson transformation

Description Details Author(s) References See Also Examples

Description

Johnson transforms to normality using the Z family of distributions. It performs the Johnson Transformation based on the method of the percentiles. It includes the Anderson-Darling Test.

Details

The values of the Johnson Transformation Function can be obtained

Package: Johnson
Type: Package
Version: 1.3
Date: 2012-08-06
License: What license is it under?
LazyLoad: yes

Author(s)

Edgar Santos Fernandez

Maintainer: Edgar Santos Fernandez <edgar.santos@etecsa.cu>

References

Chou, Youn Min; Polansky, A. M. M. R. L. (1998), "Transforming non normal data to normality in statistical process control", Journal of Quality Technology 30, 2, April.

Johnson, N. L. (1949), "Systems of Frequency Curves Generated by Methods of Translation". URL: http://www.jstor.org/stable/2332539

Slifker, J. F. & Shapiro, S. S. (1980), "The johnson system: selection and parameter estimation", Technometrics 22(2).

Trujillo-Ortiz, A., R. H.-W. K. B.-R. & Castro-Perez., A.(2007), "Andartest:anderson-darling test for assessing normality of a sample data.". URL: http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=14807

See Also

<pkg>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# transforming to normality a random sample with beta distribution
x <- rbeta(30,2,3)
y <- RE.Johnson(x); print(y)

# working with the transformed variable
x <- runif(100)
y <- RE.Johnson(x) $ transformed; print(y)

# working with the p-values
x <- rgamma(100,2,1)
y <- RE.Johnson(x)$p; print(y)

Example output

[[1]]
[1] "Johnson Transformation"

$`function`
[1] "SB"

$p
[1] 0.9475432

$transformed
 [1]  0.19269435 -0.77520103 -0.14210147  0.99005457 -1.54744027 -0.01845560
 [7] -0.51735379  2.17414052  1.99178801 -1.71416366  0.22956920  0.96816741
[13] -0.34261701  0.62606070  0.92081075  0.03214601 -2.13917992  1.65354248
[19] -0.23360656  0.62274803 -0.95165911  0.95348490 -0.97046919  0.81334232
[25] -0.36042643  0.27874872 -1.60592057 -0.80441444 -0.31184368  0.43467952

$f.gamma
[1] 0.1459121

$f.lambda
[1] 1.002953

$f.epsilon
[1] -0.01109665

$f.eta
[1] 1.27398

  [1] -2.000264595  1.103249793  1.138449396 -0.081932160 -1.485156452
  [6]  1.684999402 -0.154158495  1.334005001 -2.358447163 -0.569927118
 [11] -0.660047544  0.050043146  0.360057586  1.254366543 -0.242620416
 [16] -0.340688217 -0.785090876  1.549161214 -1.017999437  0.437075179
 [21] -1.672305556 -1.594139185  0.014164541  0.568517705 -0.468564179
 [26]  0.987525152  1.086058416 -0.109095732  1.568839993 -2.696960763
 [31]  2.046392335 -1.253426671  0.895298270  0.032499231 -0.665696764
 [36]  0.223316163  0.478817856 -1.476160930  0.194263182  1.646069947
 [41] -0.286696373 -0.221767401 -0.269794167  0.323828003  0.509418874
 [46] -0.012175907 -1.309118084 -1.393405484  1.037752445 -0.780323907
 [51] -0.563420043 -0.332740089 -0.394129775 -0.943295274  0.091224624
 [56]  0.218767993 -0.031007530 -0.433489454  0.209819112 -0.571029673
 [61] -0.993669039  1.479564225  0.492421492 -0.332901746 -0.145575848
 [66]  0.321647508  0.059117642  0.484152697  0.754540515  0.591133249
 [71]  0.001871651  0.047912670 -0.833632053 -0.836293357  1.221677692
 [76] -0.756367362  1.161043206  0.277518933  2.429674028 -0.043925145
 [81]  1.328913247 -2.217455269 -0.612496246  0.027382140  1.249391017
 [86] -1.194420707  0.617288844 -0.646404849  0.209760335  2.070148102
 [91] -0.790886306 -1.053501428  1.242109089 -0.651127360 -0.508694852
 [96]  1.420119478  1.891309010  0.179207873  1.323874128  0.815469720
[1] 0.9896305

Johnson documentation built on May 2, 2019, 3:37 p.m.