Learn R Programming

REBayes (version 2.56)

tacks: Beckett and Diaconis flipping tacks data

Description

This data was generated by Beckett and Diaconis (1994). They describe it as follows: "The example involves repeated rolls of a common thumbtack. A one was recorded if the tack landed point up and a zero was recorded if the tack landed point down. All tacks started point down. Each tack was flicked or hit with the fingers from where it last rested. A fixed tack was flicked 9 times. The data are recorded in Table 1. There are 320 9-tuples. These arose from 16 different tacks, 2 ``flickers,'' and 10 surfaces. The tacks vary considerably in shape and in proportion of ones. The surfaces varied from rugs through tablecloths through bathroom floors." Following Liu (1996), we treat the data as though they came from 320 independent binomials. See demo(Bmix1) for further details.

Usage

tacks

Arguments

Format

A data frame with 320 observations on 2 variables.

x

a numeric vector giving the number of tacks landed point up.

k

a numeric vector giving the number of trials.

References

Liu, J.S. (1996). Nonparametric Hierarchical Bayes via Sequential Imputations. Annals of Statistics, 24: 911-930.