I'm using rcorr
to correlate 54 items by 24.
Don't worry, I'm aware this is a lot of correlations and may need to perform extra stats to account for this. This is mostly to get a feel for my data.
Using rcorr
I want to cut the produced table down to just the p values under .05. I'm not interested in any correlation of items over this. What would that command look like? Right now this is the command I'm using
library(Hmisc)
x=matrix(sample.int(7, size = 100*79, replace = TRUE), nrow = 100, ncol = 79)
rcorr(as.matrix(x[,2:25]),as.matrix(x[,26:79]))
I've run a PCA of all the items as well to see how they load together but I also want to see the correlations.