pmf | R Documentation |
Create pmf object
pmf(x, p)
x |
either a sample of values from which to estimate a PMF based on frequency
if |
the |
probabilty of each unqiue value of |
data.frame
of class pmf
samp <- sample(c(-1000, 100, 800), size = 1e4, replace = TRUE)
pmf(samp)
pmf(x = c(-1000, 100, 800), p = c(0.25, 0.5, 0.25))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.