Learn R Programming

MAPCtools (version 0.1.0)

abinomial: Aggregate binomial data

Description

Aggregates binomial data using sufficient statistics for binomial samples. For a sample \(\boldsymbol{y} = \{y_1, \dots, y_n\}\) with \(y_i \sim \text{Bin}(n, p)\), the sample is aggregated into the sufficient statistic

\(s = \sum_{i=1}^n y_i\).

Usage

abinomial(data)

Value

Aggregated binomial data.

Arguments

data

Binomial data vector.