friedman.t: Friedman test

View source: R/friedman.R

friedman.tR Documentation

Friedman test

Description

Performs a Friedman rank sum test with multiple comparisons.

Usage

friedman.t(
  trait,
  treat,
  block,
  dfr,
  alpha = 0.05,
  print.mc = TRUE,
  print.pc = TRUE
)

Arguments

trait

The trait to analyze.

treat

The treatments.

block

The blocks.

dfr

The name of the data frame.

alpha

Significant level for comparisons.

print.mc

Logical, if TRUE, it prints multiple comparisons groups.

print.pc

Logical, if TRUE, it prints pairwise comparisons tests.

Details

It tests the null hypothesis that the treatments have identical effects.

Value

It returns the Friedman test and a the multiple comparisons.

Author(s)

Raul Eyzaguirre.

References

Conover, W. J.(1999). Practical Nonparametric Statistics..

Examples

# From Conover (1999)
dfr <- data.frame(y = c(4, 4, 3, 3, 4, 2, 1, 2, 3.5, 4, 4, 3.5,
                        3, 2, 1.5, 1, 2, 2, 3, 4, 1, 1, 2, 1,
                        2, 3.0, 1.5, 2, 1, 2, 2, 1, 2, 3, 3, 2,
                        1, 1, 4, 4, 3, 4, 4, 3, 3.5, 2, 1, 3.5),
                  grass = gl(4, 12),
                  homeowner = rep(1:12, 4))
friedman.t("y", "grass", "homeowner", dfr)

reyzaguirre/st4gi documentation built on March 23, 2024, 7:27 a.m.