rdirichlet {MMDai} | R Documentation |
This function is generate random sample from Dirichlet distribution
rdirichlet(n = 1, alpha = c(1, 1))
n |
- sample size |
alpha |
- parameters in Dirichlet distribution |
out - generated data
# dimension parameters
rdirichlet(n=10,alpha=c(1,1,1))