R script for Zero Inflated Model and Likelihood Ratio
datasetposted on 14.02.2019 by Trudi Webster, Sofie Van Parijs, Will Rayment, Steve Dawson
Datasets usually provide raw data for analysis. This raw data often comes in spreadsheet form, but can be any collection of data, on which analysis can be performed.
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.