[R] lm and R-squared (newbie)
ptit_bleu at yahoo.fr
Thu Dec 15 14:35:41 CET 2011
I've two data.frames (data1 and data4), dec="." and sep=";".
When I do
, results seem very similar (at least to me) but the R-squared of
summary(lm(data1$ny ~ data1$nx))
summary(lm(data4$ny ~ data4$nx))
are very different (0.48 against 0.89).
Could someone explain me the reason?
To be complete, I am looking for an simple indicator telling me if it is
worthwhile to keep the values provided by lm. I thought that R-squared could
do the job. For me, if R-squared is far from 1, the data are not good enough
to perform a linear fit.
It seems that I'm wrong.
Thanks for your explainations.
View this message in context: http://r.789695.n4.nabble.com/lm-and-R-squared-newbie-tp4199964p4199964.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help