Description Usage Arguments Author(s) Examples
Return probabilities proportional to size
1 | pps_action(size_vec, the_n)
|
size_vec |
a vector of size |
the_n |
sample size n – the sum of the resulted probabilities |
Lingyun (Larry) Zhang lyzhang10@gmail.com
1 2 3 | a_vec <- c(6, 8, 1, 2, 3, 1, 1, 1)
(y <- pps_action(size_vec = a_vec, the_n = 4))
(sum(y))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.