Description Usage Arguments Details Value Note Author(s) See Also Examples
View source: R/posthoc_anova.R
Games-Howell, Tukey HSD and other post-hoc tests for ANOVA and Welch ANOVA. Either Games-Howell test or Tukey honestly significant difference (HSD) post-hoc tests for one-way analysis of variance (ANOVA).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | posthoc_anova(
y,
group = NULL,
method = c("Games-Howell", "Tukey"),
conf_level = 0.95,
digits = 3,
digits_p = 3,
p_adjust = "none",
format_pvalue = TRUE,
data = NULL,
...
)
## S3 method for class 'formula'
posthoc_anova(
y,
group = NULL,
method = c("Games-Howell", "Tukey"),
conf_level = 0.95,
digits = 3,
digits_p = 3,
p_adjust = "none",
format_pvalue = TRUE,
data = NULL,
...,
sep = " | "
)
## Default S3 method:
posthoc_anova(
y,
group = NULL,
method = c("Games-Howell", "Tukey"),
conf_level = 0.95,
digits = 3,
digits_p = 3,
p_adjust = "none",
format_pvalue = TRUE,
data = NULL,
...
)
## S3 method for class 'posthoc_anova'
print(
x,
digits = x$input$digits,
digits_p = x$input$digits_p,
digits_param = 2,
...
)
## S3 method for class 'posthoc_anova'
plot(
x,
...,
zero_line_color = "grey",
add_p = TRUE,
p_size = 1,
p_color = "blue",
p_pos_adj = 0.22,
flip_xy = TRUE
)
|
y |
(numeric|formula) |
group |
(factor) |
method |
( |
conf_level |
(number) |
digits |
(integer) |
digits_p |
(integer) |
p_adjust |
Any valid |
format_pvalue |
(does not work yet) |
data |
(data frame) |
... |
Further arguments to methods. |
sep |
(character) |
x |
object to print. |
zero_line_color |
(character) Color for line indicating zero differences. |
add_p |
(logical) Flag if p values should be added. |
p_size |
(numeric) Font size to p-values-related text. |
p_color |
(character) Color for p values. |
p_pos_adj |
(numeric) Factor for p value position correction |
flip_xy |
(logical) Flag if x and y axes should be swapped. |
The main part of the function code and descriptions were
imported from posthocTGH()
in package userfriendlyscience.
A list of three elements:
input |
List with input arguments |
output |
List with post-hoc test results |
.
Options that carry out Games-Howell and Tukey HSD analyses are based
on code of function posthocTGH()
in package userfriendlyscience
(version 0.7.0).
Gjalt-Jorn Peters (Open University of the Netherlands)
Jeff Bagget (University of Wisconsin - La Crosse)
Vilmantas Gegzna
http://www.gcf.dkf.unibe.ch/BCB/files/BCB_10Jan12_Alexander.pdf
https://stats.stackexchange.com/questions/83941/games-howell-post-hoc-test-in-r
1 2 3 4 5 6 7 | library(biostat)
# Compute post-hoc statistics using the Games-Howell method
posthoc_anova(weight ~ Diet, data = ChickWeight, method = "Games-Howell")
# Compute post-hoc statistics using the Tukey method
posthoc_anova(weight ~ Diet, data = ChickWeight, method = "Tukey")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.