Description Usage Arguments Value Note Author(s) Examples

This function is used by the 'oneway' function for oneway analysis of variance in case a user requests post-hoc tests using the Tukey or Games-Howell methods.

1 2 3 | ```
posthocTGH(y, x, method=c("games-howell", "tukey"),
conf.level = 0.95, digits=2, p.adjust="holm",
formatPvalue = TRUE)
``` |

`y` |
y has to be a numeric vector. |

`x` |
x has to be vector that either is a factor or can be converted into one. |

`method` |
Which post-hoc tests to conduct. Valid values are "tukey" and "games-howell". |

`conf.level` |
Confidence level of the confidence intervals. |

`digits` |
The number of digits to show in the output. |

`p.adjust` |
Any valid |

`formatPvalue` |
Whether to format the p values according to APA standards (i.e. replace all values lower than .001 with '<.001'). This only applies to the printing of the object, not to the way the p values are stored in the object. |

A list of three elements:

`input` |
List with input arguments |

`intermediate` |
List of intermediate objects. |

`output` |
List with two objects 'tukey' and 'games.howell', containing the outcomes for the respective post-hoc tests. |

This function is based on a file that was once hosted at http://www.psych.yorku.ca/cribbie/6130/games_howell.R, but has been removed since. It was then adjusted for implementation in the `userfriendlyscience`

package. Jeffrey Baggett needed the confidence intervals, and so emailed them, after which his updated functions was used. In the meantime, it appears Aaron Schlegel (https://rpubs.com/aaronsc32) independently developed a version with confidence intervals and posted it on RPubs at https://rpubs.com/aaronsc32/games-howell-test.

Gjalt-Jorn Peters (Open University of the Netherlands) & Jeff Bagget (University of Wisconsin - La Crosse)

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

1 2 3 4 | ```
### Compute post-hoc statistics using the tukey method
posthocTGH(y=ChickWeight$weight, x=ChickWeight$Diet, method="tukey");
### Compute post-hoc statistics using the games-howell method
posthocTGH(y=ChickWeight$weight, x=ChickWeight$Diet);
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.