Learn R Programming

SMPracticals (version 1.4-3.1)

shoe: Shoe Wear Data

Description

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.

Usage

data(shoe)

Arguments

Format

A data frame with 20 observations on the following 4 variables.

material

factor giving the shoe sole material

boy

factor with 10 levels

foot

factor giving left or right foot

y

amount of shoe wear

References

Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 422.

Examples

Run this code
data(shoe)
attach(shoe)
d <- y[material=="B"]-y[material=="A"]  # difference
t.test(d)  # t test of hypothesis that B wears quicker 

Run the code above in your browser using DataLab