rshiftnegbin: Generate random deviates shifted negative binomial pdf

Description Usage Arguments Value

View source: R/rshiftnegbin.R

Description

This function generates random deviates from the shifted negative binomial distribution. The shift is fixed to 1.

Usage

1
  rshiftnegbin(n, size, prob)

Arguments

n

the number of random deviates to generate

size

target for number of successful trials, or dispersion parameter (the shape parameter of the gamma mixing distribution). Must be strictly positive, need not be integer.

prob

probability of success in each trial. 0 < prob <= 1.

Value

A vector of shifted negative binomial random deviates


benaug/move.HMM documentation built on Jan. 23, 2022, 4:29 a.m.