rdirichlet: Generate from a dirichlet distribution

Description Usage Arguments Details

View source: R/rdirichlet.R

Description

Generate from a dirichlet distribution

Usage

1
rdirichlet <- function(n, shape)

Arguments

n

number of permutations to generate

shape

shape parameter of length k

Details

This function returns a n x k matrix where each row is a generated value from the dirichlet distribution with the given shape parameter.


dcbdan/s525 documentation built on May 19, 2019, 10:48 p.m.