\HeaderA{rwish}{Draw from the Wishart Distribution}{rwish}
\aliasA{Wishart}{rwish}{Wishart}
\keyword{distribution}{rwish}
\begin{Description}\relax
Random generation from the Wishart distribution.
\end{Description}
\begin{Usage}
\begin{verbatim}
   rwish(v, S)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{v}] degrees of freedom (scalar)
\item[\code{S}] inverse scale matrix \eqn{(p \times p)}{}
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The mean of a Wishart random variable with \code{v} degrees of freedom
and inverse scale matrix \code{S} is \eqn{vS}{}.
\end{Details}
\begin{Value}
Returns generates one random draw from the distribution which is a
\code{matrix} with the same dimensions as \code{S}
\end{Value}
\begin{References}\relax
This was copied from the \pkg{MCMCpack} package
\end{References}
\begin{Examples}
\begin{ExampleCode}
draw <- rwish(3, matrix(c(1,.3,.3,1),2,2))
\end{ExampleCode}
\end{Examples}

