powered by
This function is generate random sample from Dirichlet distribution
rdirichlet(n = 1, alpha = c(1, 1))
- sample size
- parameters in Dirichlet distribution
out - generated data
# NOT RUN { # dimension parameters rdirichlet(n=10,alpha=c(1,1,1)) # }
Run the code above in your browser using DataLab