To add more to the thread...
!KO_mvnorm generates random data from normal population with specified covariances/correlations.
!KO_tocov brings data at hand to covariate/correlate exactly as you want.
Both functions (which are SPSS macros) are found in "MATRIX – END MATRIX functions" collection on my web-page
https://www.spsstools.net/en/macros/KO-spssmacros/------------------------------
Kirill Orlov
------------------------------
Original Message:
Sent: Wed May 11, 2022 03:39 PM
From: Clarence Burns
Subject: Correlated Dataset Generator
I have developed a macro-enabled Excel program that creates datasets of variables with user-specified correlations. The program accommodates normal random variates, scale variables with specified mean, standard deviation, etc. and/or binomial variables. It is freely available; please share it with others.
Correlated Dataset Generator
------------------------------
Clarence Burns
------------------------------
#SPSSStatistics