Dear all,
I have trying to generate three correlated variables from 3 different normal distribution functions, which seems fine to do with draw norm.
My problem is the following: lets call the variables x, y, z and I want x and z to be positively correlated and I want y and z to be positively correlated, but I want there not to be a correlation between x and y. If you set the parameter 0 in the correlation matrix, then you get an error (c not positive (semi)definite), what solution would there possibly be to this problem?
I have trying to generate three correlated variables from 3 different normal distribution functions, which seems fine to do with draw norm.
My problem is the following: lets call the variables x, y, z and I want x and z to be positively correlated and I want y and z to be positively correlated, but I want there not to be a correlation between x and y. If you set the parameter 0 in the correlation matrix, then you get an error (c not positive (semi)definite), what solution would there possibly be to this problem?
Comment