[R] Eigen values

Ben Bolker bolker at zoo.ufl.edu
Thu May 24 20:26:46 CEST 2007


Yemi Oyeyemi <gmoyeyemi <at> yahoo.com> 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



More information about the R-help mailing list