View source: R/internal-binomial_aggregation.R
abinomial | R Documentation |
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
.
abinomial(data)
data |
Binomial data vector. |
Aggregated binomial data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.