| vanWaerden.test {PMCMR} | R Documentation |
Performs a van der Waerden's normal scores test.
vanWaerden.test(x, ...) ## Default S3 method: vanWaerden.test(x, g, ...) ## S3 method for class 'formula' vanWaerden.test(formula, data, subset, na.action, ...)
x |
a numeric vector of data values, or a list of numeric data vectors. |
g |
a vector or factor object giving the group for the
corresponding elements of |
formula |
a formula of the form |
data |
an optional matrix or data frame (or similar: see
|
subset |
an optional vector specifying a subset of observations to be used. |
na.action |
a function which indicates what should happen when
the data contain |
... |
further arguments to be passed to or from methods. |
vanWaerden.test performs a van der Waerden test of the
null that the location parameters of the distribution of x
are the same in each group (sample). The alternative is that they
differ in at least one.
See vignette("PMCMR") for details.
A list with class "htest" that contains the following components:
statistic |
the van der Waerden chi-squared statistic. |
parameter |
the degrees of freedom of the approximate chi-squared distribution of the test statistic. |
p.value |
the p-value of the test. |
method |
the character string |
data.name |
a character string giving the names of the data. |
A tie correction is not applied in this function.
Thorsten Pohlert
W. J. Conover and R. L. Iman (1979), On multiple-comparisons procedures, Tech. Rep. LA-7677-MS, Los Alamos Scientific Laboratory.
## require(stats) data(InsectSprays) attach(InsectSprays) vanWaerden.test(count, spray) posthoc.vanWaerden.test(count, spray, "bonferroni") detach(InsectSprays) rm(InsectSprays)