friedman.t | R Documentation |
Performs a Friedman rank sum test with multiple comparisons.
friedman.t(
trait,
treat,
block,
dfr,
alpha = 0.05,
print.mc = TRUE,
print.pc = TRUE
)
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 |
print.pc |
Logical, if |
It tests the null hypothesis that the treatments have identical effects.
It returns the Friedman test and a the multiple comparisons.
Raul Eyzaguirre.
Conover, W. J.(1999). Practical Nonparametric Statistics..
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.