cloth {SMPracticals}R Documentation

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)

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.

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

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

[Package SMPracticals version 1.4-3.1 Index]