[R] Simulate I x J contingency tables using correlation coefficient using bivariate normal distribution

Sri Priya
Mon, 19 Aug 2019 06:36:26 -0000

Dear R Users,

I am interested in generating contingency tables from bivariate normal
distribution using different correlation coefficient values.

I am experimenting numerous ways of generating contingency tables, and one
possible way is to generate from multinomial distribution.

I wonder how to generate the count variables from a continuous distribution
using correlation structure. Generating bivariate normal variables can be
easily done using mvrnorm() in R. I am struggling to write R code for
generating count from continuous variables.

Any suggestions is very much appreciated.

Thanks.
Sripriya.