Displaying 1 result from an estimated 1 matches for "indexu".
Did you mean:
index
2012 Aug 15
0
color-coding of biplot points for varimax rotated factors (from PCA)
...dent in our statistics
department here at NC State University. However, when you compare the
two biplots, the observed points are not in the same location. The
variable vectors match up, but not the points. I'm not sure why. The
code is below. Please help.
label=data[,"Urban.Rural"]
indexU<-which(label=="U")
indexR<-which(label=="R")
collab<-rep(0,length(data[,1]))
collab[indexU]<-"Blue"
collab[indexR]<-"Green"
library(psych)
fit <- principal(mydata, nfactors = num.fac, rotate="varimax", scores = TRUE)
z1 <- s...