Skip to content

arnootto/cNB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

the contaminated negative binomial regression model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages