Re: [R] generating response curves

From: Marc Schwartz <MSchwartz_at_mn.rr.com>
Date: Sun 16 Oct 2005 - 03:10:35 EST

On Sat, 2005-10-15 at 18:00 +0200, Christian Jones wrote:
>
> Hello
> does anyone know how to visualize a response curve based on a
> regression model with lines rather than dots. Having a large number of
> parameters the following formula is to time consuming. Perhaps a built
> in function exists to speed up the process.
>
> Model1<-a~b
> #Setting the scale extent
> min(area)
> max(area)
> avals<-seq(0,10,.1)
> # generating the plot
> plot(area,incidence, las=1)
> lines(avals,predict(model4,list(area=avals),type="response"))
>
> Thanks in advance
> Christian

Did you review the example in ?predict.lm?

HTH, Marc Schwartz



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Oct 16 03:25:02 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:55:53 EST