Turn a probability vector with possible outcome values in the 'names()' attribute into a random variable:
1 |
px |
A probability vector with possible outcome values in the 'names()' attribute |
fractions |
If TRUE, return the probabilities as fractions |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.