Skip to content
Prev 30435 / 398513 Next

R help

Here is a solution, but it may take several seconds to run.

x <- matrix(rnorm(1050*1000),1050,1000)
mat <- t(x)%*%x

This is the idea behind Wishart random matrices. In theory, that matrix 
should be positive definite. This can be verified with

eigen(mat,only.values=T)

Also read ?ninvwish in package "norm". But I am not sure if it was 
designed for large matrices.

HTH,
Jerome
On April 10, 2003 11:11 am, Shutnik wrote: