suff_stat.Bernoulli | R Documentation |
Compute the sufficient statistics for a Bernoulli distribution from data
## S3 method for class 'Bernoulli'
suff_stat(d, x, ...)
d |
A |
x |
A vector of zeroes and ones. |
... |
Unused. |
A named list of the sufficient statistics of the Bernoulli distribution:
successes
: The number of successful trials (sum(x == 1)
)
failures
: The number of failed trials (sum(x == 0)
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.