Re: [R] plotting the result of a nonlinear regression

2009-02-12 Thread milton ruser
tata = seqQ))) > dev.off() > } > > ----Messaggio originale > Da: ssef...@gmail.com > Data: 10.02.2009 18.15 > A: > Copia: > Oggetto: Re: [R] plotting the result of a nonlinear regression > > ?predict > > On Tue, Feb 10, 2009 at 11:06 AM, lauramorg..

Re: [R] plotting the result of a nonlinear regression

2009-02-12 Thread lauramorg...@bluewin.ch
o")$PTG.P~subset(dati,Fiume=="Laveggio")$Portata, main=print(formList[[i]]), sub=print(summary(resultList[[i]])$sigma)) lines(seqQ, predict(resultList[[i]], list(Portata = seqQ))) dev.off() } Messaggio originale Da: ssef...@gmail.com Data: 10.02.2009 18.15 A: Copia:

Re: [R] plotting the result of a nonlinear regression

2009-02-10 Thread stephen sefick
?predict On Tue, Feb 10, 2009 at 11:06 AM, lauramorg...@bluewin.ch wrote: > Hello, > to plot the result of a singular non linear regression (using nls) I usually > use the function plotfit, for example: > > r.PTG.V<-nls(PTG.P~ fz1(Portata, a,b), data=dati, start=list(a=10, b=10), > nls.control(

[R] plotting the result of a nonlinear regression

2009-02-10 Thread lauramorg...@bluewin.ch
Hello, to plot the result of a singular non linear regression (using nls) I usually use the function plotfit, for example: r.PTG.V<-nls(PTG.P~ fz1(Portata, a,b), data=dati, start=list(a=10, b=10), nls.control(maxiter=200), algorithm='port', trace=TRUE, na.action=na.omit, lower=list(a=0, b=10),