Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 478 Bytes

File metadata and controls

17 lines (16 loc) · 478 Bytes

The cNB package

An R package to implement the methodology described in The Contamianted Negegative Binomial Regression Model (2024).

To install the package, use the following code in R

#install.packages("devtools")
library(devtools)
install_github("arnootto/cNB-RM")

Example

Code to reproduce Example 5.1: Number of visits to a doctor in a year

library(cNB)
library(COUNT)
data("badhealth")
est=ml.cnb(formula = numvisit ~ badh+age,data=badhealth)