cpra | R Documentation |
Returns a vector with cPRA percentages according to user defined frequencies
cpra(n = 100, probs = c(0.7, 0.1, 0.1, 0.1))
n |
An integer to define the length of the returned vector |
probs |
A vector with the probabilities for cPRA groups 0%, 1%-50%, 51%-84%, 85%-100% (in this order). The sum of the probabilities must be equal to one. |
A vector length n
with cPRA percentages
cpra(n = 100, probs = c(0.7, 0.1, 0.1, 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.