overdispersion {ef}R Documentation

Estimating overdispersion

Description

Complete function for returning overdispersion estimates

Usage

overdispersion(
  data,
  siteID,
  visitID,
  count = "count",
  pass = "pass",
  lifestage = "lifestage",
  pass12 = "pass12",
  id,
  largemodel
)

Arguments

data

dataframe containing EF data

siteID

site name or unique ID

visitID

a number identifying each unique visit

count

count of fish (defaults to "count")

pass

the EF pass number (defaults to "pass")

lifestage

the lifestage (defaults to "lifestage")

pass12

categorical variable with 2 levels where the 1st pass and subsequent passes are treated separately (defaults to "pass12")

id

sample ID

largemodel

the large model that captures most of the systematic variation in the data - this is specified before running the overdispersion function

Value

a data.frame summarising overdispersion

Note

ensure column names in function call are in inverted commas


[Package ef version 1.2.0 Index]