[R] Question about R^2 in nonlinear models

Spencer Graves spencer.graves at pdf.com
Thu Mar 27 21:18:41 CET 2003


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

cmorab at bellsouth.net 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
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help



More information about the R-help mailing list