rdirichlet_prob | R Documentation |
Draw from a dirichlet distribution based on mean transition probabilities and standard errors
rdirichlet_prob(n = 1, alpha, se, seed = NULL)
n |
Number of draws (must be >= 1). If n>1, it will return a list of matrices. |
alpha |
A matrix of transition probabilities |
se |
A matrix of standard errors |
seed |
An integer which will be used to set the seed for this draw. |
A transition matrix. If n>1, it will return a list of matrices.
rdirichlet_prob(n=1,alpha= matrix(c(0.7,0.3,0,0.1,0.7,0.2,0.1,0.2,0.7),3,3),
se=matrix(c(0.7,0.3,0,0.1,0.7,0.2,0.1,0.2,0.7)/10,3,3))
rdirichlet_prob(n=2,alpha= matrix(c(0.7,0.3,0,0.1,0.7,0.2,0.1,0.2,0.7),3,3),
se=matrix(c(0.7,0.3,0,0.1,0.7,0.2,0.1,0.2,0.7)/10,3,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.