R^2 = 1 - var(residuals)/var(y)

Note, however, that one can get R^2 < 0, e.g., with a straight line through the origin. If "nlme" does not automatically report R^2, this may be why.

Hope this helps.
Spencer Graves

[EMAIL PROTECTED] wrote:
Dear all

I'm not sure is this question has much sense, but I'm working with nonlinear
models using the nlme library (gnls fit for different groups) and I'm
wondering if I can get the values of R-squared for each fit. I'll appreciate
any comment.

Thanks in advance

C. Mora

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to