Simulates from the bivariate negative binomial distribution
Simulates from the bivariate negative binomial distribution
Bivariate_NBsim(N, kappa, p1, p2)
Arguments
N: number of data points to be simulated
kappa: parameter κ of the bivariate negative binomial distribution
p1: parameter p1 of the bivariate negative binomial distribution
p2: parameter p2 of the bivariate negative binomial distribution
Returns
An N×2 matrix with N simulated values from the bivariate negative binomial distribution
Details
A random vector X=(X1,X2)′ is said to follow the bivariate negative binomial distribution with parameters c("kappa,p1,\n", "p2") if its probability mass function is given by