search for: fsurv1

Displaying 1 result from an estimated 1 matches for "fsurv1".

2007 Apr 19
4
general question about plotting multiple regression results
...is fine when there is a very strong relationship) but what if I want to plot the effects from the model? In this case I would usually plot the fitted values values against the raw values of x... Is this the right approach? fit<-fitted(lm(n.day13~n.day1+ffemale.yell+fmale.yell+fmale.chroma,data=fsurv1)) plot(fit~ffemale.yell) #make a dummy variable across the range of x x<-seq(from=min(fsurv1$ffemale.yell),to=max(fsurv1$ffemale.yell), length=100) #get the coefficients and draw the line co<-coef(lm(fit~ffemale.yell,data=fsurv1)) y<-(co[2]*x)+co[1] lines(x,y, lwd=2) This often does th...