Skip to content

Predicted values for zero-inflated Poisson

4 messages · Highland Statistics Ltd, Lee, Laura, Achim Zeileis

#
On Tue, 10 Jul 2012, Laura Lee wrote:

            
That depends on what exactly you want to predict.

As Alain said: The type="count" predictions are probably not interesting 
to you. In the JSS paper accompanying zeroinfl, these correspond to 
exp(x'b) in Equation 8.

More interesting is probably the mean (1 - pi) * exp(x'b) which is the 
expected mean mu_i in Equation 8. This can be obtained as type="response".

Additionally, you might be interested in the individual probabilities for 
counts of 0, 1, 2, ... etc. This corresponds to evaluating Equation 7 
for y = 0, 1, 2, ... which can be obtained via type="prob". And from this 
you could also get the mode or median rather than the mean of the 
distribution.

hth,
Z
#
I want to predict the number of turtles for different levels of effort and
combinations of covariates. So, for my dataset from which I built the model,
would I compare sum(predict(ZIP,type="response")) to the observed bycatch to
compare numbers? In order to predict for the new data (called effort), would
I use sum(predict(ZIP,newdata=effort,type="response"))? I want to be certain
I am understanding the coding--this is my first time using the predict
function.

Thanks,

Laura

-----
Laura M. Lee
Senior Stock Assessment Scientist
North Carolina Division of Marine Fisheries
E-Mail: laura.lee at ncdenr.gov
--
View this message in context: http://r.789695.n4.nabble.com/Predicted-values-for-zero-inflated-Poisson-tp4635861p4636016.html
Sent from the R help mailing list archive at Nabble.com.