powered by
Removes first principal component effect in a covariance matrix.
RemoveSize(cov.matrix)
Altered covariance matrix with no variation on former first principal component
Covariance matrix
Diogo Melo, Guilherme Garcia
Function sets the first eigenvalue to zero.
cov.matrix <- RandomMatrix(10, 1, 1, 10) no.size.cov.matrix <- RemoveSize(cov.matrix) eigen(cov.matrix) eigen(no.size.cov.matrix)
Run the code above in your browser using DataLab