TK.test: Tukey's Honestly Significant Difference Test

Description Usage Arguments Value Author(s) See Also Examples

Description

This is a reformatted function for DTK.test function-like inputs to use the TukeyHSD function.

Usage

1
TK.test(x = "data vector", f = "factor vector", a = "alpha level")

Arguments

x

Data vector

f

Factor vector

a

Alpha, significance level. DEFAULT=0.05

Value

TukeyHSD list output.

Author(s)

Matthew K. Lau, Department of Biological Sciences, Northern Arizona University, AZ

See Also

DTK.test, DTK.plot, TukeyHSD, qtukey

Examples

1
2
3
4
5
6
x=c(rnorm(25,5,2),rnorm(30,5,5),rnorm(35,15,5))
f<-gl.unequal(n=3,k=c(25,30,35))
DTK.result<-DTK.test(x=x,f=f,a=0.05)
TK.result<-TK.test(x=x,f=f,a=0.05)
DTK.result
TK.result

Example output

[[1]]
[1] 0.05

[[2]]
          Diff  Lower CI  Upper CI
2-1 -0.2867199 -2.604124  2.030684
3-1  9.9542591  7.640053 12.268465
3-2 10.2409789  7.297512 13.184446

  Tukey multiple comparisons of means
    95% family-wise confidence level

Fit: aov(formula = x ~ f)

$f
          diff       lwr      upr     p adj
2-1 -0.2867199 -3.030700  2.45726 0.9663709
3-1  9.9542591  7.300864 12.60765 0.0000000
3-2 10.2409789  7.719866 12.76209 0.0000000

DTK documentation built on May 1, 2019, 9:16 p.m.