R/simMultDir.R

Defines functions makeDir

Documented in makeDir

#' simMultDir - creates multiple Dirichlet distributions.
#'
#' @param n A number corresponding to the number of distributions to generate.
#' @param vec A vector of parameter values for the Dirichlet
#' @seealso Note that this loads the \code{gtools} package for the \code{rdirichlet} function.
#' @examples
#' makeDir(1, c(2, 4, 3))
#' makeDir(2, c(2, 4, 3))
makeDir <- function(n, vec){
  gtools::rdirichlet(n, vec)
}
robschick/eliciteg documentation built on May 27, 2019, 11:58 a.m.