Displaying 1 result from an estimated 1 matches for "popc100".
Did you mean:
pc100
2011 Oct 21
4
plotting average effects.
...i am having difficulty plotting average
effects. admittedly, i am not really understanding what each of the
commands mean so when i get the error i am not sure where the issue is.
here is my code... i will include the points at which there are errors....
> dat2 <- dat3 <- dat
> dat2$popc100 <- dat2$popc100 + 1000
> dat2$popc100[which(dat2$popc100 > max(dat$popc100))] <- max(dat$popc100)
> dat3$popc100 <- dat$popc100 - 1000
> dat3$popc100[which(dat3$popc100 < min(dat$popc100))] <- min(dat$popc100)
> pred1 <- predict(mod, type="response")
>...