Given a correlation matrix, how can I know which variables have certain correlation values?
aa <- matrix( rnorm(25, 1,1), 5,5) colnames(aa) <- c("v1", "v2", "v3", "v4", "v5") aacor <- cor(aa)
For instance, which variables are negatively correlated? aacor[aacor<0] # provide the r values, but how I get the variables?
Any suggestion? Thanks in advance
Juli
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help