Learn R Programming

SMPracticals (version 1.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

source

Bissell, A. F. (1972) A negative binomial model with varying element size. Biometrika, 59, 435--441.

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