R script for Zero Inflated Model and Likelihood Ratio

A Zero Inflated Model with a negative binomial distribution was used to evaluate whether particular seasons and/or diel periods were important for explaining differences in right whale call presence and call rate. This script runs the ZIM and conducts a log-likelihood ratio test to determine whether a poisson or negative binomial distribution best fitted the count data.