dst_finite | R Documentation |
A finite distribution assigns probabilities to a finite collection of values. This includes categorical distributions.
dst_finite(y, probs, data, ...)
y |
< |
probs |
< |
data |
Data frame containing the outcomes |
... |
Additional arguments, currently not used. |
An object of class c("finite", "dst")
.
This distribution is called "finite" and not "discrete", because a discrete distribution could have an infinite amount of possible outcomes, as in the Poisson distribution.
dst_empirical()
dst_finite(1:5, probs = rep(0.2, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.