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

----Messaggio originale----
Da: r...@life.ku.dk
Data: 06.02.2009 13.29
A: <lauramorg...@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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to