agostino.test | R Documentation |
Performs D'Agostino test for skewness in normally distributed data.
agostino.test(x, alternative = c("two.sided", "less", "greater"))
x |
a numeric vector of data values. |
alternative |
a character string specifying the alternative hypothesis, must be one of '"two.sided"' (default), '"greater"' or '"less"'. You can specify just the initial letter. |
Under the hypothesis of normality, data should be symmetrical (i.e. skewness should be equal to zero). This test has such null hypothesis and is useful to detect a significant skewness in normally distributed data.
A list with class htest
containing the following components:
statistic |
the list containing skewness estimator and its transformation. |
p.value |
the p-value for the test. |
alternative |
a character string describing the alternative hypothesis. |
method |
a character string indicating what type of test was performed. |
data.name |
name of the data argument. |
Lukasz Komsta
D'Agostino, R.B. (1970). Transformation to Normality of the Null Distribution of G1. Biometrika, 57, 3, 679-681.
skewness
set.seed(1234) x = rnorm(1000) skewness(x) agostino.test(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.