Re: [R] Predicted values for zero-inflated Poisson

2012-07-10 Thread Laura Lee
Alain- Thanks again for your reply. Yes, the offset for effort is only in the count part of the model. Sorry I wasn't clear about why I was using 'sum'...my effort data set contains records of trips with the effort given for each trip. I thought using sum would get me the total number of turtle

Re: [R] Predicted values for zero-inflated Poisson

2012-07-10 Thread Highland Statistics Ltd
*Laura Lee* laura.lee at ncdenr.gov /Tue Jul 10 18:27:16 CEST 2012/ ---

Re: [R] Predicted values for zero-inflated Poisson

2012-07-10 Thread Laura Lee
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),

Re: [R] Predicted values for zero-inflated Poisson

2012-07-10 Thread Achim Zeileis
On Tue, 10 Jul 2012, Laura Lee wrote: Alain- Thanks again for the response. I guess my question is more related to R, which I'm learning as I go along. Could you provide guidance as to how I would code this in R? That depends on what exactly you want to predict. As Alain said: The type="co

Re: [R] Predicted values for zero-inflated Poisson

2012-07-10 Thread Laura Lee
Alain- Thanks again for the response. I guess my question is more related to R, which I'm learning as I go along. Could you provide guidance as to how I would code this in R? Thanks, Laura From: Alain Zuur [via R] [mailto:ml-node+s789695n4635920...@n4.nabble.com] Sent: Monday, July 09, 2012 5:

Re: [R] Predicted values for zero-inflated Poisson

2012-07-09 Thread Highland Statistics Ltd
Laura Lee laura.lee at ncdenr.gov Mon Jul 9 22:51:40 CEST 2012 Previous message: [R] Predicted values for zero-inflated Poisson Next message: [R] Lavaan Package - How to Extract Residuals in Data Values Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Thanks for your

Re: [R] Predicted values for zero-inflated Poisson

2012-07-09 Thread Laura Lee
Thanks for your reply. I do have a copy of "Zero Inflated Models and Generalized Linear Mixed Models with R" and have been using that as a guide. I applied the predict function (type="count") to the dataset for which I built the model to compare the predicted bycatch numbers to the observed to ensu

Re: [R] Predicted values for zero-inflated Poisson

2012-07-09 Thread Alain Zuur
Lee, Laura wrote > > Hi all- > > I fit a zero-inflated Poisson model to model bycatch rates using an offset > term for effort. I need to apply the fitted model to a datasets of varying > levels of effort to predict the associated levels of bycatch. I am seeking > assistance as to the correct way