Skip to content
Prev 169510 / 398506 Next

non linear regression with nls

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]], ...



Christian