Learn R Programming

PairedData (version 1.1.1)

Sewage: Chlorinating sewage data from Preece (1982, Table 9)

Description

This dataset presents 8 paired data corresponding to log coliform densities per ml for 2 sewage chlorination methods on each of 8 days.

Usage

data(Sewage)

Arguments

Format

A dataframe with 8 rows and 3 columns:

[,1] Day numeric
[,2] Method_A numeric log density
[,3] Method_B numeric log density

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

# Visualising
with(Sewage,plot(paired(Method_A,Method_B),type="profile"))

# Basic paired t-test
with(Sewage,t.test(paired(Method_A,Method_B)))

# Influence of the 0.1 rounding on the t-test
 with(Sewage,t.test(Method_A-Method_B-0.1))
 with(Sewage,t.test(Method_A-Method_B+0.1))

# }

Run the code above in your browser using DataLab