Hi all!

I have built a model to predict interactions with turtles and the model 
includes an offset for effort:

ZIP<-zeroinfl(Sturgeon~fMesh+fSeason+offset(LogEffort),dist="poisson",link="logit",data=data)

I wasn't clear about one aspect of the response to a similar question I 
recently posted...I apply the predicted model to a new dataset of standard 
conditions and take the sum to get the total predicted numbers of bycatch:

Prediction<-predict(ZIP,newdata=effort,type="response")
sum(Prediction)

Do I first need to exponentiate before taking the sum as in:

Prediction<-exp(predict(ZIP,newdata=effort,type="response"))
sum(Prediction)

Thanks again in advance!

Cheers,

Laura




        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to