| Title: | Tests for Normality |
|---|---|
| Description: | Tests for the composite hypothesis of normality. Compatibility updates by Renova. |
| Authors: | Ilya Gavrilov [aut], Ruslan Pusev [aut, cre] |
| Maintainer: | Ruslan Pusev <[email protected]> |
| License: | GPL (>= 3) |
| Version: | 1.1.9001 |
| Built: | 2026-11-13 17:48:13 UTC |
| Source: | https://github.com/renova-r/normtest |
Performs adjusted Jarque–Bera test for the composite hypothesis of normality, see Urzua (1996).
ajb.norm.test(x, nrepl=2000)ajb.norm.test(x, nrepl=2000)
x |
a numeric vector of data values. |
nrepl |
the number of replications in Monte Carlo simulation. |
The adjusted Jarque–Bera test for normality is based on the following statistic:
where
The p-value is computed by Monte Carlo simulation.
A list with class "htest" containing the following components:
statistic |
the value of the adjusted Jarque–Bera statistic. |
p.value |
the p-value for the test. |
method |
the character string "Adjusted Jarque-Bera test for normality". |
data.name |
a character string giving the name(s) of the data. |
Ilya Gavrilov and Ruslan Pusev
Urzua, C. M. (1996): On the correct use of omnibus tests for normality. — Economics Letters, vol. 53, pp. 247–251.
ajb.norm.test(rnorm(100)) ajb.norm.test(abs(runif(100,-2,5)))ajb.norm.test(rnorm(100)) ajb.norm.test(abs(runif(100,-2,5)))
Performs Frosini test for the composite hypothesis of normality, see e.g. Frosini (1987).
frosini.norm.test(x, nrepl=2000)frosini.norm.test(x, nrepl=2000)
x |
a numeric vector of data values. |
nrepl |
the number of replications in Monte Carlo simulation. |
The Frosini test for normality is based on the following statistic:
where
The p-value is computed by Monte Carlo simulation.
A list with class "htest" containing the following components:
statistic |
the value of the Frosini statistic. |
p.value |
the p-value for the test. |
method |
the character string "Frosini test for normality". |
data.name |
a character string giving the name(s) of the data. |
Ilya Gavrilov and Ruslan Pusev
Frosini, B.V. (1987): On the distribution and power of a goodness-of-fit statistic with parametric and nonparametric applications, "Goodness-of-fit". (Ed. by Revesz P., Sarkadi K., Sen P.K.) — Amsterdam-Oxford-New York: North-Holland. — Pp. 133–154.
frosini.norm.test(rnorm(100)) frosini.norm.test(runif(100,-1,1))frosini.norm.test(rnorm(100)) frosini.norm.test(runif(100,-1,1))
Performs Geary test for the composite hypothesis of normality, see Geary (1935).
geary.norm.test(x, nrepl=2000)geary.norm.test(x, nrepl=2000)
x |
a numeric vector of data values. |
nrepl |
the number of replications in Monte Carlo simulation. |
The Geary test for normality is based on the following statistic:
where
The p-value is computed by Monte Carlo simulation.
A list with class "htest" containing the following components:
statistic |
the value of the Geary statistic. |
p.value |
the p-value for the test. |
method |
the character string "Geary test for normality". |
data.name |
a character string giving the name(s) of the data. |
Ilya Gavrilov and Ruslan Pusev
Geary, R. C. (1935): The ratio of the mean deviation to the standard deviation as a test of normality. — Biometrika, vol. 27, pp. 310–332.
geary.norm.test(rnorm(100)) geary.norm.test(runif(100,-1,1))geary.norm.test(rnorm(100)) geary.norm.test(runif(100,-1,1))
Performs Hegazy–Green test for the composite hypothesis of normality, see e.g. Hegazy and Green (1975).
hegazy1.norm.test(x, nrepl=2000)hegazy1.norm.test(x, nrepl=2000)
x |
a numeric vector of data values. |
nrepl |
the number of replications in Monte Carlo simulation. |
The Hegazy–Green test for normality is based on the following statistic:
where
The p-value is computed by Monte Carlo simulation.
A list with class "htest" containing the following components:
statistic |
the value of the Hegazy–Green statistic. |
p.value |
the p-value for the test. |
method |
the character string "Hegazy-Green test for normality". |
data.name |
a character string giving the name(s) of the data. |
Ilya Gavrilov and Ruslan Pusev
Hegazy, Y. A. S. and Green, J. R. (1975): Some new goodness-of-fit tests using order statistics. — Journal of the Royal Statistical Society. Series C (Applied Statistics), vol. 24, pp. 299–308.
hegazy1.norm.test(rnorm(100)) hegazy1.norm.test(runif(100,-1,1))hegazy1.norm.test(rnorm(100)) hegazy1.norm.test(runif(100,-1,1))
Performs Hegazy–Green test for the composite hypothesis of normality, see e.g. Hegazy and Green (1975).
hegazy2.norm.test(x, nrepl=2000)hegazy2.norm.test(x, nrepl=2000)
x |
a numeric vector of data values. |
nrepl |
the number of replications in Monte Carlo simulation. |
The Hegazy–Green test for normality is based on the following statistic:
where
The p-value is computed by Monte Carlo simulation.
A list with class "htest" containing the following components:
statistic |
the value of the Hegazy–Green statistic. |
p.value |
the p-value for the test. |
method |
the character string "Hegazy-Green test for normality". |
data.name |
a character string giving the name(s) of the data. |
Gavrilov Ilya and Ruslan Pusev
Hegazy, Y. A. S. and Green, J. R. (1975): Some new goodness-of-fit tests using order statistics. — Journal of the Royal Statistical Society. Series C (Applied Statistics), vol. 24, pp. 299–308.
hegazy2.norm.test(rnorm(100)) hegazy2.norm.test(runif(100,-1,1))hegazy2.norm.test(rnorm(100)) hegazy2.norm.test(runif(100,-1,1))
Performs Jarque–Bera test for the composite hypothesis of normality, see Jarque and Bera (1987).
jb.norm.test(x, nrepl=2000)jb.norm.test(x, nrepl=2000)
x |
a numeric vector of data values. |
nrepl |
the number of replications in Monte Carlo simulation. |
The Jarque–Bera test for normality is based on the following statistic:
where
The p-value is computed by Monte Carlo simulation.
A list with class "htest" containing the following components:
statistic |
the value of the Jarque–Bera statistic. |
p.value |
the p-value for the test. |
method |
the character string "Jarque-Bera test for normality". |
data.name |
a character string giving the name(s) of the data. |
Ilya Gavrilov and Ruslan Pusev
Jarque, C. M. and Bera, A. K. (1987): A test for normality of observations and regression residuals. — International Statistical Review, vol. 55, pp. 163–172.
jb.norm.test(rnorm(100)) jb.norm.test(abs(runif(100,-2,5)))jb.norm.test(rnorm(100)) jb.norm.test(abs(runif(100,-2,5)))
Performs kurtosis test for the composite hypothesis of normality, see, e.g., Shapiro, Wilk and Chen (1968).
kurtosis.norm.test(x, nrepl=2000)kurtosis.norm.test(x, nrepl=2000)
x |
a numeric vector of data values. |
nrepl |
the number of replications in Monte Carlo simulation. |
The kurtosis test for normality is based on the following statistic:
The p-value is computed by Monte Carlo simulation.
A list with class "htest" containing the following components:
statistic |
the value of the test statistic. |
p.value |
the p-value for the test. |
method |
the character string "Kurtosis test for normality". |
data.name |
a character string giving the name(s) of the data. |
Ilya Gavrilov and Ruslan Pusev
Shapiro, S. S., Wilk, M. B. and Chen, H. J. (1968): A comparative study of various tests for normality. — Journal of the American Statistical Association, vol. 63, pp. 1343–1372.
kurtosis.norm.test(rnorm(100)) kurtosis.norm.test(runif(100,-1,1))kurtosis.norm.test(rnorm(100)) kurtosis.norm.test(runif(100,-1,1))
Performs skewness test for the composite hypothesis of normality, see, e.g., Shapiro, Wilk and Chen (1968).
skewness.norm.test(x, nrepl=2000)skewness.norm.test(x, nrepl=2000)
x |
a numeric vector of data values. |
nrepl |
the number of replications in Monte Carlo simulation. |
The skewness test for normality is based on the sample skewness:
The p-value is computed by Monte Carlo simulation.
A list with class "htest" containing the following components:
statistic |
the value of the sample skewness. |
p.value |
the p-value for the test. |
method |
the character string "Skewness test for normality". |
data.name |
a character string giving the name(s) of the data. |
Ilya Gavrilov and Ruslan Pusev
Shapiro, S. S., Wilk, M. B. and Chen, H. J. (1968): A comparative study of various tests for normality. — Journal of the American Statistical Association, vol. 63, pp. 1343–1372.
skewness.norm.test(rnorm(100)) skewness.norm.test(abs(runif(100,-2,5)))skewness.norm.test(rnorm(100)) skewness.norm.test(abs(runif(100,-2,5)))
Performs Spiegelhalter test for the composite hypothesis of normality, see Spiegelhalter (1977).
spiegelhalter.norm.test(x, nrepl=2000)spiegelhalter.norm.test(x, nrepl=2000)
x |
a numeric vector of data values. |
nrepl |
the number of replications in Monte Carlo simulation. |
The Spiegelhalter test for normality is based on the following statistic:
where
The p-value is computed by Monte Carlo simulation.
A list with class "htest" containing the following components:
statistic |
the value of the Geary statistic. |
p.value |
the p-value for the test. |
method |
the character string "Spiegelhalter test for normality". |
data.name |
a character string giving the name(s) of the data. |
Ilya Gavrilov and Ruslan Pusev
Spiegelhalter, D. J. (1977): A test for normality against symmetric alternatives. — Biometrika, vol. 64, pp. 415–418.
spiegelhalter.norm.test(rnorm(100)) spiegelhalter.norm.test(rexp(100))spiegelhalter.norm.test(rnorm(100)) spiegelhalter.norm.test(rexp(100))
Performs Weisberg–Bingham test for the composite hypothesis of normality, see Weisberg and Bingham (1975).
wb.norm.test(x, nrepl=2000)wb.norm.test(x, nrepl=2000)
x |
a numeric vector of data values. |
nrepl |
the number of replications in Monte Carlo simulation. |
The Weisberg–Bingham test for normality is based on the following statistic:
where
The p-value is computed by Monte Carlo simulation.
A list with class "htest" containing the following components:
statistic |
the value of the Weisberg–Bingham statistic. |
p.value |
the p-value for the test. |
method |
the character string "Weisberg-Bingham test for normality". |
data.name |
a character string giving the name(s) of the data. |
Ilya Gavrilov and Ruslan Pusev
Weisberg, S. and Bingham, C. (1975): An approximate analysis of variance test for non-normality suitable for machine calculation. — Technometrics, vol. 17, pp. 133–134.
wb.norm.test(rnorm(100)) wb.norm.test(runif(100,-1,1))wb.norm.test(rnorm(100)) wb.norm.test(runif(100,-1,1))