corn: Corn Yield

Description Usage Format Details Source References Examples

Description

William Gosset analyzed data from an experiment comparing the yield of regular and kiln-dried corn.

Usage

1

Format

A data frame with 11 observations on the following 2 variables.

reg

yield of regular corn (lbs/acre)

kiln

yield of kiln-dried corn (lbs/acre)

Details

Gosset (Student) reported on the results of seeding plots with two different kinds of seed. Each type of seed (regular and kiln-dried) was planted in adjacent plots, accounting for 11 pairs of "split" plots.

Source

These data are also available at DASL, the data and story library (http://lib.stat.cmu.edu/DASL/).

References

W.S. Gosset, "The Probable Error of a Mean," Biometrika, 6 (1908), pp 1-25.

Examples

1
2
3
4
5
corn2 <- stack(corn)
names(corn2) <- c('yield','treatment')
lm(yield ~ treatment, corn2)
t.test(yield ~ treatment, corn2)
t.test(corn$reg,corn$kiln)

Example output

Loading required package: mosaic
Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Loading required package: lattice
Loading required package: ggformula
Loading required package: ggplot2

New to ggformula?  Try the tutorials: 
	learnr::run_tutorial("introduction", package = "ggformula")
	learnr::run_tutorial("refining", package = "ggformula")
Loading required package: mosaicData
Loading required package: Matrix

The 'mosaic' package masks several functions from core packages in order to add 
additional features.  The original behavior of these functions should not be affected by this.

Note: If you use the Matrix package, be sure to load it BEFORE loading mosaic.

Attaching package: 'mosaic'

The following object is masked from 'package:Matrix':

    mean

The following objects are masked from 'package:dplyr':

    count, do, tally

The following objects are masked from 'package:stats':

    IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
    quantile, sd, t.test, var

The following objects are masked from 'package:base':

    max, mean, min, prod, range, sample, sum

Loading required package: mosaicCalc
Loading required package: mosaicCore

Attaching package: 'mosaicCalc'

The following object is masked from 'package:stats':

    D


Attaching package: 'fastR'

The following object is masked from 'package:graphics':

    panel.smooth


Call:
lm(formula = yield ~ treatment, data = corn2)

Coefficients:
  (Intercept)  treatmentkiln  
      1841.45          33.73  

yield ~ treatment

	Welch Two Sample t-test

data:  yield by treatment
t = -0.23413, df = 19.983, p-value = 0.8173
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 -334.2292  266.7746
sample estimates:
 mean in group reg mean in group kiln 
          1841.455           1875.182 


	Welch Two Sample t-test

data:  corn$reg and corn$kiln
t = -0.23413, df = 19.983, p-value = 0.8173
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 -334.2292  266.7746
sample estimates:
mean of x mean of y 
 1841.455  1875.182 

fastR documentation built on May 2, 2019, 5:53 p.m.