So in R I'm using principal component analysis for a csv file with variables each representing a year from 1 to 32.
Here is the code:
Xdata <- context2[2:ncol(context2)]
head(Xdata)
model5 <- prcomp(Xdata)
model5$rotation[,1]*100
screeplot(model5,type="lines")
factor <- model5$x[,1]
context2$factor <- factor
factor2 = matrix(c(factor), nrow=651, ncol=1)
factor <- factor2 %*% solve(sqrtm(crossprod(factor2))) * sqrt(nrow(factor2))
crossprod(factor)/nrow(factor)
All of that code above works fine, but I need to find the year values where the standardized factor is less than -2.58. If I view the standardized factor in r I can get values less than -2.58 by just looking, but the numbers are outputs of the principal component 1 variable like this: https://i.stack.imgur.com/HVxNC.jpg. How do I go about getting the years where the standardized factor is less than -2.58?