Skip to content

prediction from glm

2 messages · Hugues Santin-Janin, Dieter Menne

1 day later
#
Hugues Santin-Janin <hsantin-janin <at> gct.org.uk> writes:
..
You should use the newdata argument in predict.glm to construct the "should-be" 
data set. The example on the page ?predict.glm creates budworm-data on the fly, 
but it's probably easier to understand if you create a separate data frame 
myfemales first, the do predict(Model1, newdata=myfemales,..) in a separate 
step.

Dieter Menne