Learn R Programming

SMPracticals (version 1.4-3.1)

cloth: Numbers of Flaws in Lengths of Cloth

Description

The data comprise lengths of cloth samples and the numbers of flaws found in them.

Usage

data(cloth)

Arguments

Format

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

x

The length of the roll of cloth.

y

The number of flaws found in the roll.

References

Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 515.

Examples

Run this code
data(cloth)
attach(cloth)
plot(x,y)
# Comparison of Poisson and quasilikelihood fits
summary(glm(y~x-1,family=poisson(identity)))
summary(glm(y~x-1,family=quasipoisson(identity)))

Run the code above in your browser using DataLab