Learn R Programming

multcomp (version 0.3-8)

recovery: 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)

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. 80)

Examples

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

Run the code above in your browser using DataLab