Re: [R] Plot binomial regression line

2011-05-26 Thread Uwe Ligges
On 26.05.2011 10:45, Jörgen Svan wrote: Dear all, I am quite new with R and I have a problem with plotting a binomial regression line in a plot. This is what I type in: model<-glm(Para~Size,binomial) par(mfrow=c(1,1)) xv<-seq(3.2,4.5,0.01) yv<-predict(model,list(area=xv),type="response") plo

Re: [R] Plot binomial regression line

2011-05-26 Thread Achim Zeileis
On Thu, 26 May 2011, Jörgen Svan wrote: Dear all, I am quite new with R and I have a problem with plotting a binomial regression line in a plot. This is what I type in: model<-glm(Para~Size,binomial) par(mfrow=c(1,1)) xv<-seq(3.2,4.5,0.01) yv<-predict(model,list(area=xv),type="response") plot

[R] Plot binomial regression line

2011-05-26 Thread Jörgen Svan
Dear all, I am quite new with R and I have a problem with plotting a binomial regression line in a plot. This is what I type in: > model<-glm(Para~Size,binomial) > par(mfrow=c(1,1)) > xv<-seq(3.2,4.5,0.01) > yv<-predict(model,list(area=xv),type="response") > plot(Size,Para) > lines(xv,yv) The er