Re: [R] Selecting individuals to maximize the correlation of two variables

2014-01-11 Thread Enrico Schumann
On Fri, 10 Jan 2014, 汤靖 writes: > Hi, > Maybe it is not directly related to R but sine many are statistical experts > so I post it here for help: > > I have two variables (say x and y) of length n. Now the cor(x,y) is close to > 0. I need to find the subset in {1,.. n} so that the correlation b

[R] Selecting individuals to maximize the correlation of two variables

2014-01-10 Thread 汤靖
Hi, Maybe it is not directly related to R but sine many are statistical experts so I post it here for help: I have two variables (say x and y) of length n. Now the cor(x,y) is close to 0. I need to find the subset in {1,.. n} so that the correlation between x and y using the subset data is maxi