Description Usage Arguments Value Examples
Calculates the empirical probability mass function for a variable with associated weights.
1 | emppmf(y, weight)
|
y |
Numerical variable |
weight |
Associated weights of the variable of interest, default weight is rep(1,length(y)) |
vals: the distinct values of y
epmf: empirical probability mass function corresponding to each y in vals
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.