Re: [R] Calculating & plotting a linear regression between two correlated variables

2012-01-23 Thread Bert Gunter
With all due respect, these appear to be statistics issues not R issues. I suggest that they be taken off list and perhaps continued on stackexchange or some other statistics forum if not privately. -- Bert On Mon, Jan 23, 2012 at 8:38 AM, B77S wrote: > I know this isn't what you are asking, but

Re: [R] Calculating & plotting a linear regression between two correlated variables

2012-01-23 Thread B77S
I know this isn't what you are asking, but have you considered examining the relationship between dA and the community density excluding dA? JulieV wrote > > Hi Josh, > > Thanks for your response ! > > Actually, I already tried to plot it with a "classical" regression and I > know the rel

Re: [R] Calculating & plotting a linear regression between two correlated variables

2012-01-23 Thread JulieV
Hi Josh, Thanks for your response ! Actually, I already tried to plot it with a "classical" regression and I know the relation is linear: dA = 0.765 * dCOM - 0.089 p(slope) < 0.0001 p(intercept) = 0.0003 The fact is that I can not use these results as my variables dA and dCOM are correlated

Re: [R] Calculating & plotting a linear regression between two correlated variables

2012-01-22 Thread Joshua Wiley
Hi Julie, Mixed effects models are typically used to allow for correlations between observations of the outcome variable---the fact that you are trying to model dA ~ dCOM rather assumes you expect some sort of association between the two. It is not exactly clear what you want to deal with using a

[R] Calculating & plotting a linear regression between two correlated variables

2012-01-22 Thread JulieV
Hi, I have a Community (COM) composed of 6 species: A, B, C, D, E & F. The density of my Community is thus (Eq.1): dCOM = dA + dB + dC + dE + dF I would like to calculate and plot a linear regression between the density of each of my species and the density of the whole community (illustrating how