search for: tp3599548p3600553

Displaying 1 result from an estimated 1 matches for "tp3599548p3600553".

2011 Jun 15
2
Correlations by subgroups
I'm hoping there is a simple answer to this - it seems that there should be, but I can't figure it out. I have a matrix/data frame with three variables of interest - V1, V2, V3. One, V1, is a factor with x levels (x may be a large number); I want to calculate the correlation between the other two (i.e. cor(V2,V3)) for each level, and store it as a vector of length x. I should think this