https://cran.r-project.org/web/packages/statmod/statmod.pdf
