I have a post using Cholesky decomposition algorithm
https://bbs.pinggu.org/thread-1129334-1-1.html
The algorithm can be write into a function call with FCMP and directly use in a data step.
The tough part for this problem is to find a valid covariance/correlation matrix.
A valid covariance/correlation matrix should be positive semi-definite.
For example 3x3 correlation (covariance ~ correlation scale by variance components), it has 3 rhos, but 3 rhos need to satisfy certain conditions to be positive semi-definite. Higher dimensions will have more conditions. In other words rhos cannot arbitrary defined.
If you have a real problem, at lease you can define a sample covariance/correlation matrix and start from there.


雷达卡






京公网安备 11010802022788号







