Skip to content

Hurdle negative binomial family for mgcv

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

muskuloes/hurdleNB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hurdleNB

R-CMD-check

Hurdle negative binomial family for mgcv.

Install

# using remotes
# install.packages("remotes")
remotes::install_github("muskuloes/hurdleNB")

Example

library(mgcv)
library(hurdleNB)

set.seed(1)
n <- 400
dat <- gamSim(1, n = n)
dat$y <- rhurdleNB(dat$f / 4 - 1)

m <- gam(y ~ s(x0) + s(x1) + s(x2) + s(x3),
  data = dat, family = hurdleNB()
)

About

Hurdle negative binomial family for mgcv

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks