Description Arguments Value Examples
This function samples posterior predictive responses (x=1,...,K) given a matrix of probabilities. It is implemented in C++ to increase speed.
prob |
Numeric matrix with K columns |
Numeric vector of length nrow(prob)
containing integerish
responses between 1 and K
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.