recovery {multcomp}R Documentation

Recovery Time Data Set

Description

Recovery time data set taken from Westfall et al. (1999, p. 80). Many-to-one comparisons according to Dunnett in an unbalanced one-way layout.

Usage

data(recovery)

Format

This data frame contains the following variables

blanket
Blanket type at 4 levels: b0, b1, b3, b4.
minutes
Response variable: recovery time after a surgical procedure.

Details

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

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.

Examples

data(recovery)

# one-sided simultaneous confidence intervals for Dunnett 
# in the one-way layout
ci <- simint(minutes ~ blanket, data=recovery, conf.level=0.9, 
      alternative="less",eps=0.0001)
summary(ci)
plot(ci,cex.axis=1.5, lwd=1.5)

# same results, but specifying the contrast matrix by hand
C <- c(0, 0, 0, -1, -1, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
C <- matrix(C, ncol=5)
# numerate the contrasts
rownames(C) <- paste("C", 1:nrow(C), sep="")
test <- simint(minutes~blanket, data=recovery, conf.level=0.9, 
               alternative="less",eps=0.0001, cmatrix=C)
print(test)

# same results, but more detailed information using the summary method
summary(test)

[Package multcomp version 0.4-8 Index]