N <- 500
# bivariate example
margins <- c("ZIGP","GP")
mu <- matrix(runif(N*2,10,20),N,2)
phi <- matrix(runif(N*2,1,3),N,2)
omega <- matrix(c(runif(N,0,.3),rep(NA,N)),N,2)
corstr <- "ex"
corpar <- .5
Y <- rcounts.reg(N=N, margins=margins, mu=mu, phi=phi, omega=omega,
corstr=corstr, corpar=corpar)
cor(Y)
Run the code above in your browser using DataLab