# mpcmp

The mpcmp package provides a collection of functions for estimation, testing and diagnostic checking for the mean-parametrized Conway-Maxwell Poisson (COM-Poisson) regression model for under- and over-dispersed count data of Huang (2017).

From version 0.3.0, mpcmp supports log-linear mean models, also allows one to incorporate regression being linked to the dispersion parameter.

Work is progressing to include a zero-inflated Conway-Maxwell-Poisson model.

## Installation

### Stable release on CRAN

The mpcmp package has been on CRAN since March 2019. You can install it from CRAN in the usual way:

install.packages("mpcmp")
library("mpcmp")

### Development version on Github

You can use the devtools package to install the development version of mpcmp from GitHub:

# install.packages("devtools")
devtools::install_github("thomas-fung/mpcmp")
library(mpcmp)

## Usage

A reference manual and some examples are available at thomas-fung.github.io/mpcmp

## Citation

If you use this package to analyse your data, please use the following citation:

• Fung, T., Alwan, A., Wishart, J. and Huang, A. (2021). mpcmp: Mean-parametrized Conway-Maxwell Poisson Regression. R package version 0.3.7.

From R you can use:

citation("mpcmp")
toBibtex(citation("mpcmp"))
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.30187132954597473, "perplexity": 13035.997123946687}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-49/segments/1637964363337.27/warc/CC-MAIN-20211207075308-20211207105308-00190.warc.gz"}