[d9ee58]: / man / rdirichlet_alt.Rd

Download this file

34 lines (30 with data), 1.2 kB

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