prob2stick | R Documentation |
transform a vector of probabilities that sum to one to stick proportions.
prob2stick(x)
x |
a vector of probabilities (K); sums to |
a vector K, with last element of 1; the elements are stick lengths in the remaining part
prob2stick(c(0.5,0.2,0.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.