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

Sri Priya @r|@chocho @end|ng |rom gm@||@com
Mon Aug 19 08:36:26 CEST 2019


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.

	[[alternative HTML version deleted]]



More information about the R-help mailing list