[R] generating response curves
Marc Schwartz
MSchwartz at mn.rr.com
Sat Oct 15 19:10:35 CEST 2005
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
More information about the R-help
mailing list