search for: eigvecnocent

Displaying 1 result from an estimated 1 matches for "eigvecnocent".

Did you mean: eigveccent
2009 Mar 08
2
prcomp(X,center=F) ??
...d to the first column: > X <- cbind(rnorm(100,100,50),rnorm(100,100,50)) > X[,2] <- X[,1]*1.5-50 +runif(100,-70,70) > plot(X) > cor(X[,1],X[,2]) [1] 0.903597 > eigvnocent <- prcomp(X,center=F,scaling=F)[[1]] > eigvcent <- prcomp(X,center=T,scaling=F)[[1]] > eigvecnocent <- prcomp(X,center=F,scaling=F)[[2]] > eigveccent <- prcomp(X,center=T,scaling=F)[[2]] > PCnocent <- X%*%eigvecnocent > PCcent <- X%*%eigveccent > par(mfrow=c(2,2)) > plot(X) > plot(PCnocent) > plot(PCcent) > cor(X[,1],X[,2]) [1] 0.903597 > cor(PCce...