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

Link to function mvrnorm() from package MASS

parent 6c0108b0
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ rmcd <- function(n, mu, Sigma, tol = 1e-6) {
#' can be generated using:
#' \deqn{\displaystyle{\mathbf{X} = \boldsymbol{\mu} + \frac{\mathbf{Y}}{\sqrt{u}}}}
#' where \eqn{\mathbf{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 1 degree of freedom.
#'
#' @author Pierre Santagostini, Nizar Bouhlel
......
......@@ -27,7 +27,7 @@ A sample from a MCD with parameters \eqn{\boldsymbol{\mu}} and \eqn{\Sigma}
can be generated using:
\deqn{\displaystyle{\mathbf{X} = \boldsymbol{\mu} + \frac{\mathbf{Y}}{\sqrt{u}}}}
where \eqn{\mathbf{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 1 degree 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