Learn R Programming

PairedData (version 1.1.1)

Barley: Barley data from Preece (1982, Table 1)

Description

This dataset presents 12 paired data corresponding to the yields of Glabron and Velvet Barley, grown on different farms. The values from farm 12 are quite different.

Usage

data(Barley)

Arguments

Format

A dataframe with 17 rows and 3 columns:

[,1] Farm factor
[,2] Glabron numeric yields (bushels per acre)
[,3] Velvet numeric yields

References

Preece D.A. (1982) t is for trouble (and textbooks): a critique of some examples of the paired-samples t-test. The Statistician, 31 (2), 169-195.

Examples

Run this code
# NOT RUN {
data(Barley)

# Visualizing a clear outlier
with(Barley,plot(paired(Glabron,Velvet),type="BA"))

# Results form the paired t test and paired Yuen test are similar
with(Barley,t.test(paired(Glabron,Velvet)))
with(Barley,yuen.t.test(paired(Glabron,Velvet)))

# Nevertheless the outlier inflates the location (numerator) and
# scale (denominator) standard statictics for the difference
with(Barley,summary(paired(Glabron,Velvet)))
# }

Run the code above in your browser using DataLab