Skip to content
/ msm Public
forked from chjackson/msm

Zero-inflated negative binomial model extension of msm R package

Notifications You must be signed in to change notification settings

da-wi/msm

 
 

Repository files navigation

msm

Fork of the msm R package for continuous-time multi-state modelling of panel data implementing a zero-inflated negative binomial model.

Installation (development version)

install.packages("devtools") # if devtools not already installed
devtools::install_github('da-wi/msm')

Basic usage

model_zeroinflnegbinom <- list(
                 hmmMV(hmmZINBinom(disp = 10, prob = 0.4, bernpi = 0.1),
                       hmmZINBinom(disp = 3, prob = 0.3, bernpi = 0.16),
                       hmmZINBinom(disp = 5, prob = 0.6, bernpi = 0.7),
                       hmmZINBinom(disp = 2, prob = 0.3, bernpi = 0.5)),
                 hmmMV(hmmZINBinom(disp = 7, prob = 0.3, bernpi = 0.1),
                       hmmZINBinom(disp = 3, prob = 0.3, bernpi = 0.16),
                       hmmZINBinom(disp = 5, prob = 0.6, bernpi = 0.2),
                       hmmZINBinom(disp = 4, prob = 0.3, bernpi = 0.1))
)

Original package

https://github.com/chjackson/msm

About

Zero-inflated negative binomial model extension of msm R package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 83.0%
  • C 14.1%
  • TeX 1.9%
  • PostScript 1.0%