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 Erweitern Sie FreeMail zu einem noch leistungsstarkeren E-Mail-Postfach! Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131 [[alternative HTML version deleted]]
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 > ChristianDid you review the example in ?predict.lm? HTH, Marc Schwartz