I want to generate 5 columns with data 0 and 1. I want to have a correlation coefficient of 0.70 between individual columns.
I understand we could do it with the mvrnorm function in the MASS package as explained already Generate two variables with precise pre-specified correlation
But this does not generate data between 0 and 1. I wonder if I have missed something. It is very good to demonstrate it using R codes.