knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
DGLMExtPois is a package that contains statistical functions for the model estimation, dispersion testing and diagnosis of hyper-Poisson and Conway-Maxwell-Poisson regression models.
You can install the released version of DGLMExtPois from CRAN with:
install.packages("DGLMExtPois")
and the development version from github with:
devtools::install_github("franciscomartinezdelrio/DGLMExtPois")
This is a basic example which shows you how to solve a common problem:
library(DGLMExtPois) library(Ecdat) Bids$size.sq <- Bids$size ^ 2 hP.bids <- glm.hP(formula.mu = numbids ~ leglrest + rearest + finrest + whtknght + bidprem + insthold + size + size.sq + regulatn, formula.gamma = numbids ~ 1, data = Bids) summary(hP.bids) AIC(hP.bids) BIC(hP.bids) coef(hP.bids) confint(hP.bids) head(fitted(hP.bids)) head(residuals(hP.bids))
CMP.bids <- glm.CMP(formula.mu = numbids ~ leglrest + rearest + finrest + whtknght + bidprem + insthold + size + size.sq + regulatn, formula.nu = numbids ~ 1, data = Bids) summary(CMP.bids) AIC(CMP.bids) BIC(CMP.bids) coef(CMP.bids) confint(CMP.bids) head(fitted(CMP.bids)) head(residuals(CMP.bids))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.