R/dnbinom-hhsmm.R

Defines functions .dnbinom.hhsmm

.dnbinom.hhsmm <- function(x,size,prob=NULL,shift,mu=NULL,log=FALSE) {
  if(shift<0) stop(".dnbinom.hhsmm: shift must be > 0")
  if(is.null(mu)){
  	dnbinom(x-shift,size,prob,log=log)
  } else {
    dnbinom(x-shift,size=size,mu=mu,log=log)
  }
}

Try the hhsmm package in your browser

Any scripts or data that you put into this service are public.

hhsmm documentation built on Aug. 8, 2023, 9:06 a.m.