isim_to_cprob | R Documentation |
Convert index simplex to cumulative probability
isim_to_cprob(s, idx)
s |
vector or matrix of simplices |
idx |
integer vector of indices |
matrix of cumulative probabilities
s <- c(0.1, 0.4, 0.15, 0.35)
ss <- matrix(c(0.1, 0.4, 0.15, 0.35,
0.13, 0.26, 0.05, 0.56),
ncol=4, byrow=TRUE)
idx <- c(1L, 2L, 4L, 3L)
isim_to_cprob(s, idx)
isim_to_cprob(ss, idx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.