Learn R Programming

PairedData (version 1.1.1)

GrapeFruit: Grape Fruit data from Preece (1982, Table 6)

Description

This dataset presents paired data corresponding to the percentage of solids recorded in the shaded and exposed halves of 25 grapefruits.

Usage

data(GrapeFruit)

Arguments

Format

A dataframe with 25 rows and 3 columns:

[,1] Fruit numeric
[,2] Shaded numeric percentage of solids in grapefruit
[,3] Exposed numeric percentage of solids

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(GrapeFruit)

# Visualizing a very strange paired distribution
with(GrapeFruit,plot(paired(Shaded,Exposed)))
with(GrapeFruit,plot(paired(Shaded,Exposed),type="BA"))
with(GrapeFruit,plot(paired(Shaded,Exposed),type="McNeil"))
with(GrapeFruit,plot(paired(Shaded,Exposed),type="profile"))

# As underlined by Preece (1982), have a look to
# the distribution of the final digits
show(GrapeFruit)
table(round((GrapeFruit$Shaded*10-floor(GrapeFruit$Shaded*10))*10))
table(round((GrapeFruit$Exposed*10-floor(GrapeFruit$Exposed*10))*10))

# }

Run the code above in your browser using DataLab