[R] Confidence intervals and polynomial fits

Ben Haller rhelp at sticksoftware.com
Sat May 7 16:15:32 CEST 2011


On May 6, 2011, at 4:27 PM, David Winsemius wrote:

> On May 6, 2011, at 4:16 PM, Ben Haller wrote:
>> 
> 
>> As for correlated coefficients: x, x^2, x^3 etc. would obviously be highly correlated, for values close to zero.
> 
> Not just for x close to zero:
> 
> > cor( (10:20)^2, (10:20)^3 )
> [1] 0.9961938
> > cor( (100:200)^2, (100:200)^3 )
> [1] 0.9966219

  Wow, that's very interesting.  Quite unexpected, for me.  Food for thought.  Thanks!

Ben Haller
McGill University

http://biology.mcgill.ca/grad/ben/



More information about the R-help mailing list