powered by
Generate random samples from Dirichlet distribution.
rDir(n, alpha)
integer, number of samples.
numeric, Dirichlet parameter.
A numeric matrix of n rows and length(alpha) columns.
dDir
# NOT RUN { rDir(5,c(1,2,3)) #generate 5 samples with parameters c(1,2,3) # }
Run the code above in your browser using DataLab