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-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Derek An Sent: Tuesday, June 16, 2009 1:51 PM To: r-help@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@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. ______________________________________________ R-help@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.