Description Usage Arguments Value
Calculates the proportion of a particular entry in a vector to the sum of all entries. Use in calculating MAP values of probability parameters in multinomial dirstributions with dirichlet hyperparameters.
1 | calculate.dprob(i, v)
|
i |
index of value |
v |
vector of values |
v[i]/sum(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.