Learn R Programming

RVAideMemoire (version 0.9-45-2)

fp.test: Fligner-Policello test

Description

Performs a Fligner-Policello test of the null that the medians in the two groups (samples) are the same.

Usage

fp.test(x, ...)

## S3 method for class 'default':
fp.test(x, y, delta = 0, alternative = "two.sided", ...)

## S3 method for class 'formula':
fp.test(formula, data, subset, ...)

Arguments

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 "two.sided" (default), "greater" or "less".
formula
a formula of the form a ~ b, where a and b give the data values and corresponding groups.
data
an optional data frame containing the variables in the formula formula. By default the variables are taken from environment(formula).
subset
an optional vector specifying a subset of observations to be used.
...
further arguments to be passed to or from other methods.

Value

  • statistictest statistics.
  • p.valuep-value of the test.
  • alternativea character string describing the alternative hypothesis.
  • methoda character string indicating the name of the test.
  • data.namea character string giving the names of the data.
  • null.valuethe specified hypothesized value of the median difference.

Details

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.

See Also

fp.test, wilcox.test

Examples

Run this code
x <- rpois(20,3)
y <- rpois(20,5)
fp.test(x,y)

Run the code above in your browser using DataLab