Dear all, Is there a instruction that can help me obtain the coefficient of determination R^2 after doing linear/nonlinear regression using lm/nls? [[alternative HTML version deleted]]
look at the archives - I don't remember who gave a wonderful explanation on this topic, but it is there. hth Stephen Sefick On Tue, Jun 16, 2009 at 4:50 PM, Derek An<derekan2 at gmail.com> wrote:> Dear all, > > Is there a instruction that can help me obtain the coefficient of > determination R^2 after doing linear/nonlinear regression using lm/nls? > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > 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. >-- Stephen Sefick Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis
For linear, yes: ?summary.lm For nonlinear, no, since there is no such thing (unambiguously, anyway) in nonlinear regression. It's almost always a bad idea even in linear regression, though. Bert Gunter Genentech Nonclinical Biostatistics -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Derek An Sent: Tuesday, June 16, 2009 1:51 PM To: r-help at r-project.org Subject: [R] Coefficient of determination Dear all, Is there a instruction that can help me obtain the coefficient of determination R^2 after doing linear/nonlinear regression using lm/nls? [[alternative HTML version deleted]] ______________________________________________ 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.