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

Bert Gunter gunter.berton at gene.com
Mon Jan 23 18:08:45 CET 2012


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 <bps0002 at auburn.edu> wrote:
> 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 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 (as mentioned above, Eq.1). What I need to find out is
>> which correction I should do on my data, and how, to be able to calculte
>> the regression p-values correctly with Linear Mixed Models.
>>
>> I am interested in this because I know that my species decline at
>> different rates when my community is declining.
>> For example, with decreasing values of dCOM, dA reaches 0 before dB.
>>
>>
>> Julie
>>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Calculating-plotting-a-linear-regression-between-two-correlated-variables-tp4319051p4321222.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm



More information about the R-help mailing list