shoe | R Documentation |
Amount of wear in a paired comparison of two materials used for soling the shoes of 10 boys. The materials were allocated randomly to the left and right feet.
data(shoe)
A data frame with 20 observations on the following 4 variables.
factor giving the shoe sole material
factor with 10 levels
factor giving left or right foot
amount of shoe wear
Box, G. E. P., Hunter, W. G. and Hunter, J. S. (1978) Statistics for Experimenters. New York: Wiley. Page 100.
Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 422.
data(shoe)
attach(shoe)
d <- y[material=="B"]-y[material=="A"] # difference
t.test(d) # t test of hypothesis that B wears quicker
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.