posthocTGH
posthocTGH
This function is used by the 'oneway' function for oneway analysis of variance in case a user requests posthoc tests using the Tukey or GamesHowell methods.
 Keywords
 utilities
Usage
posthocTGH(y, x, method=c("gameshowell", "tukey"), conf.level = 0.95, digits=2, p.adjust="holm", formatPvalue = TRUE)
Arguments
 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 posthoc tests to conduct. Valid values are "tukey" and "gameshowell".
 conf.level
 Confidence level of the confidence intervals.
 digits
 The number of digits to show in the output.
 p.adjust

Any valid
p.adjust
method.  formatPvalue
 Whether to format the p values according to APA standards (i.e. replace all values lower than .001 with '
Value

A list of three elements:
A list of three elements:
Note
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/gameshowelltest.
Examples
### Compute posthoc statistics using the tukey method
posthocTGH(y=ChickWeight$weight, x=ChickWeight$Diet, method="tukey");
### Compute posthoc statistics using the gameshowell method
posthocTGH(y=ChickWeight$weight, x=ChickWeight$Diet);
Community examples
Looks like there are no examples yet.