On Sun, Mar 30, 2008 at 7:11 PM, Che-hsu (Joe) Chang <[EMAIL PROTECTED]> wrote:
>  Basically, I want to calculate the correlation between variable A and B for
>  every subject in my study. (yep, that simple)
>
>  What I did is this:
>  by(data, id, function (x) cor.test(A,B, data=x))

This recent thread [1] might prove of interest.
Liviu

[1] http://www.nabble.com/p-value-in-Spearman-rank-order-tt15738907.html

______________________________________________
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