a b/man/rdirichlet_alt.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/dirichlet.R
3
\name{rdirichlet_alt}
4
\alias{rdirichlet_alt}
5
\title{Generate a matrix of \code{n} rows of sets of probabilities
6
generated from the Dirichlet distribution, each row
7
summing to 1. Uses the alternative \eqn{\mu} \eqn{\phi}
8
parameterisation for the Dirichlet distribution,
9
representing means and precision.}
10
\usage{
11
rdirichlet_alt(n = 1, mu = c(0.3, 0.3, 0.3), phi = 10)
12
}
13
\arguments{
14
\item{n}{Number of sets of probabilities (defaults to 1)}
15
16
\item{mu}{Vector of mean values for each probability in the set
17
(defaults to c(0.001, 0.029. 0.7)). Must be greater than 0 and
18
finite, and contain at least two values.}
19
20
\item{phi}{Parameter representing precision, where precision is
21
1/variance. Must be positive and finite. Defaults to 10.}
22
}
23
\description{
24
Generate a matrix of \code{n} rows of sets of probabilities
25
generated from the Dirichlet distribution, each row
26
summing to 1. Uses the alternative \eqn{\mu} \eqn{\phi}
27
parameterisation for the Dirichlet distribution,
28
representing means and precision.
29
}
30
\examples{
31
rdirichlet_alt(n = 3, mu = c(0.001, 0.029, 0.7), phi = 10)
32
33
}