Learn R Programming

PairedData (version 0.9.9)

Corn: Corn data (Darwin)

Description

This dataset presents 15 paired data corresponding to the final height of corn data (Zea Mays), one produced by cross-fertilization and the other by self-fertilization. These data were used by Fisher (1936) and were published in Andrews and Herzberg (1985).

Usage

data(Corn)

Arguments

format

A dataframe with 15 rows and 4 columns: rlll{ [,1] pair numeric [,2] pot numeric [,3] Crossed numeric plant height (inches) [,4] Self numeric plant height }

source

Darwin, C. (1876). The Effect of Cross- and Self-fertilization in the Vegetable Kingdom, 2nd Ed. London: John Murray.

References

  • Andrews, D. and Herzberg, A. (1985) Data: a collection of problems from many fields for the student and research worker. New York: Springer.
  • Fisher, R.A. (1936) The design of Experiments. Oliver & Boyd: London

Examples

Run this code
data(Corn)

# Visualizing two outliers
with(Corn,slidingchart(paired(Crossed,Self)))

# Very bad matching in these data
with(Corn,cor.test(Crossed,Self))
with(Corn,winsor.cor.test(Crossed,Self))


# So the two-sample test is slightly 
# more interesting than the paired test
with(Corn,t.test(Crossed,Self,var.equal=TRUE))
with(Corn,t.test(Crossed,Self,paired=TRUE))

# The Pitman-Morgan test is influenced by the two outliers
with(Corn,var.test(paired(Crossed,Self)))
with(Corn,grambsch.var.test(paired(Crossed,Self)))
with(Corn,bonettseier.var.test(paired(Crossed,Self)))

# Lastly, is there a pot effect?
with(Corn,plot(paired(Crossed,Self)))
with(Corn,plot(paired(Crossed,Self),group=pot))

Run the code above in your browser using DataLab