[R] maximum/minimum value of a function

2009-07-10 Thread Derek An
Dear All, Does anyone know how to get the maximum/minimum value of a function using R, I think there should be an instruction, but i can not find it in help files Thank you in advance for your help :) [[alternative HTML version deleted]] __ R

[R] Iteratively Reweighted Least Squares of nonlinear regression

2009-07-01 Thread Derek An
Dear all, When doing nonlinear regression, we normally use nls if e are iid normal. i learned that if the form of the variance of e is not completely known, we can use the IRWLS (Iteratively Reweighted Least Squares ) algorithm: for example, var e*i =*g0+g1*x*1 1. Start with *w**i = *1 2.

[R] Coefficient of determination

2009-06-16 Thread Derek An
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/m