fp.test | R Documentation |
Performs a Fligner-Policello test of the null that the medians in the two groups (samples) are the same.
fp.test(x, ...)
## Default S3 method:
fp.test(x, y, delta = 0, alternative = "two.sided", ...)
## S3 method for class 'formula'
fp.test(formula, data, subset, ...)
x |
a numeric vector of data values. |
y |
a numeric vector of data values. |
delta |
null difference in medians tested. |
alternative |
a character string specifying the alternative hypothesis, must be one of |
formula |
a formula of the form |
data |
an optional data frame containing the variables in the formula |
subset |
an optional vector specifying a subset of observations to be used. |
... |
further arguments to be passed to or from other methods. |
The Fligner-Policello test does not assume that the shape of the distribution is similar in two groups, contrary to the Mann-Whitney-Wilcoxon test. However, it assumes that the the distributions are symmetric.
statistic |
test statistics. |
p.value |
p-value of the test. |
alternative |
a character string describing the alternative hypothesis. |
method |
a character string indicating the name of the test. |
data.name |
a character string giving the names of the data. |
null.value |
the specified hypothesized value of the median difference. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
wilcox.test
x <- rpois(20,3)
y <- rpois(20,5)
fp.test(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.