Skip to content
Snippets Groups Projects
Commit c62a87e2 authored by SANTAGOSTINI Pierre's avatar SANTAGOSTINI Pierre
Browse files

Link to mvrnorm from MASS package

parent 61ebc909
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ rmtd <- function(n, nu, mu, Sigma, tol = 1e-6) {
#' can be generated using:
#' \deqn{\displaystyle{X = \mu + \frac{Y}{\sqrt{\frac{u}{\nu}}}}}
#' where \eqn{Y} is a random vector distributed among a centered Gaussian density
#' with covariance matrix \eqn{\Sigma} (generated using \code{\link{mvrnorm}})
#' with covariance matrix \eqn{\Sigma} (generated using \code{\link[MASS]{mvrnorm}})
#' and \eqn{u} is distributed among a Chi-squared distribution with \eqn{\nu} degrees of freedom.
#'
#' @author Pierre Santagostini, Nizar Bouhlel
......
......@@ -30,7 +30,7 @@ A sample from a MTD with parameters \eqn{\nu}, \eqn{\boldsymbol{\mu}} and \eqn{\
can be generated using:
\deqn{\displaystyle{X = \mu + \frac{Y}{\sqrt{\frac{u}{\nu}}}}}
where \eqn{Y} is a random vector distributed among a centered Gaussian density
with covariance matrix \eqn{\Sigma} (generated using \code{\link{mvrnorm}})
with covariance matrix \eqn{\Sigma} (generated using \code{\link[MASS]{mvrnorm}})
and \eqn{u} is distributed among a Chi-squared distribution with \eqn{\nu} degrees of freedom.
}
\examples{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment