Learn R Programming

miscF (version 0.1-2)

mvn.ub: Unbiased Estimate of Parameters of a Multivariate Normal Distribution

Description

Obtain the Unbiased Estimate of Parameters of a Multivariate Normal Distribution.

Usage

mvn.ub(X)

Arguments

X
a matrix of observations with one subject per row.

Value

  • hat.Muunbiased estimate of mean.
  • hat.Sigmaunbiased estimate of variance.

Examples

Run this code
Sigma <- matrix(c(100, 0.99*sqrt(100*100),
                      0.99*sqrt(100*100), 100),
                      nrow=2)
  X <- mvrnorm(1000, c(100, 100), Sigma)
  result <- mvn.ub(X)

Run the code above in your browser using DataLab