See ?cor

Uwe Ligges


nyk wrote:
What would be a good method to find the subset of columns of a data matrix
(with about 200 rows and columns) that has the strongest correlation to one
other column? I tried testing sub-matrices with random sets of 10 columns
selected using lm(x ~submtrx) and comparing the r^2 values. But isn't there
a better method for this task?

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to