Re: [R] ANOVA/statistics question

2009-04-26 Thread drmh
Hello again, In my situation, I have three variables: pretest, posttest, and cohesion. I want to work out the correlation between postest and cohesion. I looked at multiple sets of data and created ANOVA tables of them. However, as pretest and postest are sometimes correlated (with a

Re: [R] ANOVA/statistics question

2009-04-26 Thread Peter Flom
drmh douglasrmhol...@googlemail.com wrote Hello again, In my situation, I have three variables: pretest, posttest, and cohesion. I want to work out the correlation between postest and cohesion. cor(cohesion, posttest) gives you this. I looked at multiple sets of data and created ANOVA

[R] ANOVA/statistics question

2009-04-25 Thread drmh
(Have searched for this already) Hi, How do you find the strength of correlation between two variables using an ANOVA table? Pr(F) gives the statistical significance of the association, but not the strength of the correlation. See data (from R) below Readable: Df

Re: [R] ANOVA/statistics question

2009-04-25 Thread Tal Galili
Hi Douglas I would go for a different command then aov. something like: ?cor or ?cor.test To also get the p value of the correlation. Cheers, Tal On Sat, Apr 25, 2009 at 8:27 AM, drmh douglasrmhol...@googlemail.comwrote: (Have searched for this already) Hi, How do you find the strength

Re: [R] ANOVA/statistics question

2009-04-25 Thread drmh
Hi, thanks for your prompt reply In my situation, the dependent variable is post-test and the independent variables are pre and coh. Howw would I find the correlation between coh and post with the effect of pre regressed using your commands? Tal Galili wrote: Hi Douglas I would go for a

Re: [R] ANOVA/statistics question

2009-04-25 Thread Tal Galili
Hi Douglas. So you want to check for correlation or regression ? how many levels does pre have ? you could subset the variables you want to check correlation on, by the pre levels. for example: Let's say pre has two levels: 1 and 2. then you can do: cor(y[pre == 1], x[pre == 1]) cor(y[pre == 2],