Oh, on another note, I can use rcorr to get the Spearman correlations, but I'd like to be able to just add
the ranks as a column. I was going to just use order and add a simple factor. But, that doesn't deal with ties correctly.
And, I also wanted to analyze correlations subject by subject and compare my two groups. However, there doesn't seem to be a good way to get this. I tried using "by" with "cor". However, this requires binding x and y which causes cor to return a matrix (if you could pass it x and y separate it would just return a number).
given
data frame s x y subj 4 7 harry 5 1 harry 6 9 harry 2 4 steve 3 7 steve ...
i'd like to be able to produce
r subj .12 harry .52 steve ...
any tips?
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
