danaher {MM} | R Documentation |
Dataset due to Danaher
Description
Dataset due to Danaher; also an analysis ab initio
Usage
data(danaher)
Format
-
danaher
is a matrix (of classOarray
) that represents Danaher and Hardie's Table 1
Details
Since bacon is often eaten with eggs, it is reasonable to expect that it is purchased with eggs.
Danaher and Hardie use a dataset obtained from a sample of 548 households over four consecutive store trips. They considered only grocery shopping trips with a total basket value of at least five dollars. For each household, they counted the total number of bacon purchases in their four eligible shopping trips, and the total number of egg purchases for the same trips.
Object danaher
is a five-by-five matrix of class Oarray
with entry (i,j)
indicating the number of shoppers buying bacon
on i
occasions and eggs on j
occasions (note the zero
offset). Thus danaher[1,2]=16
indicates that 16 shoppers
bought bacon on 1 occasion and eggs on 2 occasions.
References
P. J. Danaher and B. G. S. Hardie 2005. “Bacon with your eggs? Applications of a new bivariate beta-binomial distribution”. The American Statistician, 59(4):282
See Also
Examples
data(danaher)
Lindsey_MB(danaher)
# Dataset from table 3 follows; see also the example at Lindsey.Rd
mags <-
c(2463, 35, 44, 14, 16, 7, 262, 20, 2, 2, 0, 0, 0, 2, 17, 2,
0, 2, 0, 0, 3, 8, 0, 0, 1, 0, 0, 4, 8, 0, 1, 1, 0, 0, 3, 3,
0, 0, 0, 0, 0, 1, 52, 2, 1, 0, 2, 0, 22)
dim(mags) <- c(7,7)
mags <- Oarray::as.Oarray(mags,offset=0)
dimnames(mags) <-
list(AA=as.character(0:6),Sig=as.character(0:6)) # messy kludge in Lindsey_MB()
summary(Lindsey_MB(mags))