how to generate a dataset of correlated variables with different distributions?
问题 For teaching purposes, I need to generate random datasets of correlated random variables with different distributions. I have tried corr2data in Stata but it will not allow me to specify max and min values of the variables to be generated, just means, sd's and the covariance matrix. Therefore, I need to do messy adjustments after generation of the data. Various other details annoy me with corr2data . Is there a simpler way of doing this with MATLAB? I am not as familiar with this software as