This program enables you to simulate correlated multivariate binary data according to the algorithm of Emrich and Piedmonte (1991). The program is from Wicklin (2013). The attached file is RandMVBinary.zip, which contains two files:
Note that you should %INCLUDE the RandMVBinary.sas file before calling the IML procedure. Within the procedure, use the LOAD statement to load the RANDMVBINARY function before you call it.
The RANDMVBINARY function uses features of SAS/IML 12.1, which was released as part of SAS 9.3m2. If you are running an earlier version of SAS, call the function RANDMVBINARY93, which has the same syntax but is slightly less efficient.
Emrich, L.J. and Piedmonte, M. R., 1991, "A Method for Generating High-Dimensional Multivariate Binary Variables," The American Statistician, 45, p. 302--304
Wicklin, R., 2013, Simulating Data with SAS, SAS Institute Inc., Cary NC, pp. 154--157.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.