Skip to content

Instantly share code, notes, and snippets.

View zsusswein's full-sized avatar

Zachary Susswein zsusswein

  • Centers for Disease Control and Prevention
  • Washington, District of Columbia
View GitHub Profile
@gavinsimpson
gavinsimpson / compare-glmmTMB-with-mgcv.R
Last active April 30, 2024 20:09
A quick R script I knocked up to compare the glmmTMB and mgcv packages for fitting zero-inflated GLMMs to the Salamander and Owls data sets from Brooks et al (2017)
## Compare Brooks et al glmmTMB paper with mgcv
## Packages
library("glmmTMB")
library("mgcv")
library("ggplot2")
theme_set(theme_bw())
library("ggstance")
## Salamander