While using princomp()
function in R, the following error is encountered : "covariance matrix is not non-negative definite"
.
I think, this is due to some values being zero (actually close to zero, but becomes zero during rounding) in the covariance matrix.
Is there a work around to proceed with PCA when covariance matrix contains zeros ?
[FYI : obtaining the covariance matrix is an intermediate step within the princomp()
call. Data file to reproduce this error can be downloaded from here - http://tinyurl.com/6rtxrc3]