Complete function for returning overdispersion estimates
overdispersion(
data,
siteID,
visitID,
count = "count",
pass = "pass",
lifestage = "lifestage",
pass12 = "pass12",
id,
largemodel
)dataframe containing EF data
site name or unique ID
a number identifying each unique visit
count of fish (defaults to "count")
the EF pass number (defaults to "pass")
the lifestage (defaults to "lifestage")
categorical variable with 2 levels where the 1st pass and subsequent passes are treated separately (defaults to "pass12")
sample ID
the large model that captures most of the systematic variation in the data - this is specified before running the overdispersion function
a data.frame summarising overdispersion