[R] non linear regression with nls

lauramorgana at bluewin.ch lauramorgana at bluewin.ch
Fri Feb 6 15:35:39 CET 2009

Thank you! It worked perfectly, also for the other variables!

----Messaggio originale----
Da: ritz at life.ku.dk
Data: 06.02.2009 13.29
A: <lauramorgana at bluewin.ch>
Oggetto: Re: [R] non linear regression with nls

Hi Laura,

I think you have to make a list formulas:

formList <- list(NT.N ~ fz1(Portata, a, b), NT.N ~ fz2(Portata, a, b), NT.N ~ fz3(Portata,
a, b, d, e), NT.N ~ fz4(Portata, a, b), NT.N ~ fz5(Portata, a, b, d))

and then in the loop:

resultList[[i]] <- nls(formList[[i]], ...


More information about the R-help mailing list