[R] Correlations not in sync with r2 from regression

2006-11-15 Thread Leeds, Mark \(IED\)
I have two variables, minutereturnsa which can be thought of as my independent variable and minutereturnsb which can be thought of as my dependent variable. When I run correlations on the two variables, depending on which of the three methods I use, I get values of between -.15 through -.19.

Re: [R] Correlations not in sync with r2 from regression

2006-11-15 Thread Leeds, Mark \(IED\)
: [R] Correlations not in sync with r2 from regression Mark: cor() and R^2 are in sync for me on the data you provided: summary(lm(minutereturnsa ~ minutereturnsb))$r.squared [1] 0.03640094 summary(lm(minutereturnsa ~ minutereturnsb))$r.squared^.5 [1] 0.1907903 cor(minutereturnsa

[R] Correlations by group

2006-07-24 Thread Peter J. Lee
I'm aware that S N Krishna asked the same question. However, I have failed to implement the posted solution for running rank order correlations on multiple subsets of data using the by() function. Here is my problem: Take a set of data from two subjects, who provided numerical infant

Re: [R] Correlations by group

2006-07-24 Thread Gabor Grothendieck
On 7/24/06, Peter J. Lee [EMAIL PROTECTED] wrote: I'm aware that S N Krishna asked the same question. However, I have failed to implement the posted solution for running rank order correlations on multiple subsets of data using the by() function. Here is my problem: Take a set of data from

[R] Correlations by group

2006-07-24 Thread Peter J. Lee
Many thanks, your solutions solve a number of my problems (not least weening myself off SAS) Best wishes, Peter _ Peter James Lee Assistant Professor Psikoloji Bölümü Bilkent University Bilkent Ankara Turkey 06800 e-mail: [EMAIL PROTECTED] office: (90) 312 290 1807

[R] correlations

2004-12-12 Thread klea lambrou
__ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Correlations

2003-10-09 Thread Bobbie van der Westhuizen
Hi I am trying out R for the first time and it seems to work nice. I also try it out on a LINUX platform aswell as on Windows. I downloaded the new version of R for windows (version 8.1.0) but something look not right in the calculations of correlations between traits when I use the next

Re: [R] Correlations

2003-10-09 Thread Prof Brian Ripley
On Thu, 9 Oct 2003, Bobbie van der Westhuizen wrote: Hi I am trying out R for the first time and it seems to work nice. I also try it out on a LINUX platform aswell as on Windows. I downloaded the new version of R for windows (version 8.1.0) but something look not right in the