: [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(minut
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.
Then
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
hom
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
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 mortalit
__
[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
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 calcula
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 command