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
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.