userfriendlyscience (version 0.5-2)

posthocTGH: posthocTGH

Description

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.

Usage

posthocTGH(y, x, method=c("games-howell", "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 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 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:

Examples

Run this code
### 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);

Run the code above in your browser using DataLab