Skip to content
Prev 75648 / 398502 Next

predict nbinomial glm

This is seems to be an unstated repeat of much of an earlier and 
unanswered post

 	https://stat.ethz.ch/pipermail/r-help/2005-August/075914.html

entitled

 	[R] error in predict glm (new levels cause problems)

It is nothing to do with `nbinomial glm' (sic): all model fitting 
functions including lm and glm do this.  The reason you did not get at 
least one reply from your first post is that you seemed not to have done 
your homework.  (One thing the posting guide does ask is for you to try 
the current version of R, and yours is three versions old.)

The code is protecting you from an attempt at statistical nonsense. 
(Indeed, the check was added to catch such misuses.)  Your email address 
seems to be that of a student, so please seek the help of your advisor. 
You seem surprised that you are not allowed to make predictions about 
levels for which you have supplied no relevant data.
On Tue, 16 Aug 2005, K. Steinmann wrote: