Re: [R] Eigen values

From: Ben Bolker <>
Date: Thu, 24 May 2007 18:26:46 +0000 (UTC)

Yemi Oyeyemi <gmoyeyemi <at>> writes:

> Dear,
> My problems are;
> 1. Simulate a P-variate multivariate data set (N by P)
> 2. Draw samples of size n from N (with or without replacement)
> 3. Obtain eigen values of the variance-covariance matrix of each
> sample drawn in (2) above.
> 4. print out the matrix of eigen values as well as the identity of
> sample generating them.

  Can you convince us that this isn't a homework problem, perhaps by telling us more about the application? (You also haven't specified what kind of multivariate data set you want to simulate, although multivariate normal would be simplest.)

  Hints: mvrnorm (MASS), var, sample, eigen .

  Ben Bolker mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 May 2007 - 18:33:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 May 2007 - 19:31:33 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.