Learn R Programming

VGAM (version 1.1-3)

beggs: Bacon and Eggs Data

Description

Purchasing of bacon and eggs.

Usage

data(beggs)

Arguments

Format

Data frame of a two way table.

b0, b1, b2, b3, b4

The b refers to bacon. The number of times bacon was purchased was 0, 1, 2, 3, or 4.

e0, e1, e2, e3, e4

The e refers to eggs. The number of times eggs was purchased was 0, 1, 2, 3, or 4.

Details

The data is from Information Resources, Inc., a consumer panel based in a large US city [see Bell and Lattin (1998) for further details]. Starting in June 1991, the purchases in the bacon and fresh eggs product categories for a sample of 548 households over four consecutive store trips was tracked. Only those grocery shopping trips with a total basket value of at least five dollars was considered. For each household, the total number of bacon purchases in their four eligible shopping trips and the total number of egg purchases (usually a package of eggs) for the same trips, were counted.

References

Danaher, P. J. and Hardie, B. G. S. (2005). Bacon with Your Eggs? Applications of a New Bivariate Beta-Binomial Distribution. American Statistician, 59(4), 282--286.

See Also

rrvglm, rcim, grc.

Examples

Run this code
# NOT RUN {
beggs
colSums(beggs)
rowSums(beggs)
# }

Run the code above in your browser using DataLab