How to change na.action for zero-inflated regression model?
问题 I am running a zero-inflated negative binomial regression model using the function zeroinfl from the pscl package. I need to exclude NA's from the model in order to be able to plot the residuals against the dependent variable later in the analysis. Therefore, I want to set na.action="na.exclude" . I can do this without any problem for a non-zero-inflated negative binomial regression model (using glm.nb from the glm package), eg. fm_nbin <- glm.nb(DV ~ factor(IDV) + contr1 +contr2 + contr3,