Learn R Programming

multcomp (version 0.2-6)

detergent: Detergent Durability Data Set

Description

Detergent durability in a fractional design experiment; data set taken from Westfall et al. (1999, p. 189). Balanced incomplete block design.

Usage

data(detergent)

Arguments

source

P. H. Westfall, R. D. Tobias, D. Rom, R. D. Wolfinger, Y. Hochberg (1999). Multiple Comparisons and Multiple Tests Using the SAS System. Cary, NC: SAS Institute Inc.

Details

See Westfall et al. (1999, p. 189)

Examples

Run this code
data(detergent)

N <- rep(2, 5)

# BIBD: prepare the contrast matrix = all-pair comparisons for 
# the 5 levels of detergent
C <- contrMat(N, type="Tukey")
# the additional 10 columns of are for the 10 blocks
C <- cbind( matrix(0, ncol=10, nrow=10), C )
# numerate the contrasts
colnames(C) <- NULL
rownames(C) <- paste("C", 1:nrow(C), sep="")

# adjusted p-values
summary(simtest(plates ~ block+detergent, data=detergent,
                ttype="logical", cmatrix=C))

Run the code above in your browser using DataLab