<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: simulation multivariate binary data in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189781#M1951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Hi Rick,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Sorry I have to reply here. I posted a question in the community discussion but have not received any response since&lt;BR /&gt;then. So here’s my question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #575757; font-size: 11pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #575757; font-size: 11pt;"&gt;I want to generate raw data for a study that has multiple treatment groups (2 treatment groups and 1 control group). Every participant in each of the groups are measured on two related outcomes ( r=.80). Then I need to repeat the same process to generate 10 studies, which I plan to meta-analyze. Each group has equal sample size (n=10). Any help with the simulation code will be&lt;BR /&gt;appreciated. Outcomes are generated from a multivariate normal distribution. The table below illustrates how the data should look like.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table-DGP.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6774_Table-DGP.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt; Thanks,&lt;/P&gt;&lt;P&gt;Rommel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 18:15:14 GMT</pubDate>
    <dc:creator>sirerwin</dc:creator>
    <dc:date>2014-07-03T18:15:14Z</dc:date>
    <item>
      <title>simulation multivariate binary data</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189773#M1943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i need your help to correct this simulation program in sas multivariate binary data .&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%include "C:\Users\hp\Desktop\RandMVBinary.sas";&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;load module=_all_;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* load the modules */&lt;/P&gt;&lt;P&gt;p = {0.25&amp;nbsp; 0.75&amp;nbsp; 0.5&amp;nbsp; 0.25&amp;nbsp; 0.30&amp;nbsp; 0.10&amp;nbsp; 0.30&amp;nbsp; 0.55&amp;nbsp; 0.25 0.65};&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* expected values of the X&lt;J&gt;&amp;nbsp;&amp;nbsp; */&lt;/J&gt;&lt;/P&gt;&lt;P&gt;Delta = {1&amp;nbsp; 0.45 0.4&amp;nbsp;&amp;nbsp; 0.35 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.25 0.2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.15 0.1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.05,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45 1 0.45 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.25 0.2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.15 0.1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4&amp;nbsp; 0.45 1&amp;nbsp;&amp;nbsp; 0.45&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.25 0.2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.15,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35&amp;nbsp; 0.4 0.45 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.25 0.2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.3&amp;nbsp; 0.35 0.4&amp;nbsp;&amp;nbsp; 0.45&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.25,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.25&amp;nbsp; 0.3 0.35 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35 0.3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2&amp;nbsp; 0.25 0.3&amp;nbsp;&amp;nbsp; 0.35&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.15&amp;nbsp; 0.2 0.25 0.3&amp;nbsp;&amp;nbsp; 0.35 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45 0.4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1&amp;nbsp; 0.15 0.2&amp;nbsp;&amp;nbsp; 0.25&amp;nbsp;&amp;nbsp; 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35 0.4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.45,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.05&amp;nbsp; 0.1 0.15 0.2 0.25 0.3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.35 0.4&amp;nbsp;&amp;nbsp; 0.45&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X = RandMVBinary(1000, p, Delta);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* compare sample estimates to parameters */&lt;/P&gt;&lt;P&gt;print p, Delta;&lt;/P&gt;&lt;P&gt;create MVbinary from X;&amp;nbsp; append from X;&amp;nbsp; close MVB;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 15:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189773#M1943</guid>
      <dc:creator>thanoon</dc:creator>
      <dc:date>2014-01-07T15:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: simulation multivariate binary data</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189774#M1944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I hope anyone answer me to correct the previous program please. Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 14:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189774#M1944</guid>
      <dc:creator>thanoon</dc:creator>
      <dc:date>2014-01-08T14:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: simulation multivariate binary data</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189775#M1945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem is explained in Section 9.2 of Simulating Data with SAS, pp 154--157. The program gives you hints to fix it. When you run the program, the RandMVBinary module prints the message:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The specified covariance is invalid&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;and displays the lower and upper bounds for a valid covariance matrix.Your Delta matrix must be within these bounds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your example, the following correlations (and their symmetric partners) are invalid because they are too large:&lt;/P&gt;&lt;P&gt; (1,2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (2,4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (2,6)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (3,6)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (6,8)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (6,10)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (9,10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even after you fix that problem, you still might run into difficulties because, as I have told you many times, it is extremely difficult to "invent" a mean vector and a covariance matrix that represents a valid set of parameters for generating 10 correlated multivariate binary or ordinal variables. There are complex relationships between the means and the covariances that render many combinations invalid, and you can't tell which matrices are invalid by looking at them. It is not until you try to run the program and get an error that you are alerted to the fact that you have specified invalid parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is especially difficult for highly correlated variables. If you just want ANY matrix that works, try halving the size of the correlations that you are using. (This is an example of what the literature calls "shrinkage".)&amp;nbsp; By trial and error, I discovered that the following correlation matrix works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delta = {&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.15&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp; 0.175&amp;nbsp; 0.15&amp;nbsp; 0.125 0.1&amp;nbsp;&amp;nbsp; 0.075 0.05&amp;nbsp; 0.025,&lt;/P&gt;&lt;P&gt;0.15&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.15&amp;nbsp;&amp;nbsp; 0.175 0.075 0.125 0.1&amp;nbsp;&amp;nbsp; 0.075 0.05 ,&lt;/P&gt;&lt;P&gt;0.2&amp;nbsp;&amp;nbsp; 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp; 0.15&amp;nbsp; 0.15&amp;nbsp; 0.125 0.1&amp;nbsp;&amp;nbsp; 0.075,&lt;/P&gt;&lt;P&gt;0.175 0.15&amp;nbsp; 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.2&amp;nbsp;&amp;nbsp; 0.175 0.15&amp;nbsp; 0.125 0.1&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;0.15&amp;nbsp; 0.175 0.2&amp;nbsp;&amp;nbsp; 0.225&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.2&amp;nbsp;&amp;nbsp; 0.175 0.15&amp;nbsp; 0.125, &lt;/P&gt;&lt;P&gt;0.125 0.075 0.15&amp;nbsp;&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp; 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.125 0.175 0.1&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;0.1&amp;nbsp;&amp;nbsp; 0.125 0.15&amp;nbsp;&amp;nbsp; 0.175 0.2&amp;nbsp;&amp;nbsp; 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.2&amp;nbsp;&amp;nbsp; 0.175, &lt;/P&gt;&lt;P&gt;0.075 0.1&amp;nbsp;&amp;nbsp; 0.125 0.15&amp;nbsp;&amp;nbsp; 0.175 0.125 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.2&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;0.05&amp;nbsp; 0.075 0.1&amp;nbsp;&amp;nbsp; 0.125&amp;nbsp; 0.15&amp;nbsp; 0.175 0.2&amp;nbsp;&amp;nbsp; 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;0.025 0.05&amp;nbsp; 0.075 0.1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.125 0.1&amp;nbsp;&amp;nbsp; 0.175 0.2&amp;nbsp;&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 16:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189775#M1945</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-01-08T16:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: simulation multivariate binary data</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189776#M1946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much dr. rick exactly the delta matrix is work and i got on a results i will try to find more about mvbinary data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 00:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189776#M1946</guid>
      <dc:creator>thanoon</dc:creator>
      <dc:date>2014-01-10T00:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: simulation multivariate binary data</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189777#M1947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;when i simulate data with multivariate binary the results will be ordered or unordered binary data.&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189777#M1947</guid>
      <dc:creator>thanoon</dc:creator>
      <dc:date>2014-02-19T13:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: simulation multivariate binary data</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189778#M1948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Th observations are generated in a random order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 14:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189778#M1948</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-02-19T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: simulation multivariate binary data</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189779#M1949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you means unordered variables??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 14:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189779#M1949</guid>
      <dc:creator>thanoon</dc:creator>
      <dc:date>2014-02-28T14:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: simulation multivariate binary data</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189780#M1950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i have same problem when i want to simulate multi different sample in mvbinary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%include "RandMVBinary.sas";&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;load module=_all_;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* load the modules */&lt;/P&gt;&lt;P&gt;p = {0.25&amp;nbsp; 0.75&amp;nbsp; 0.5&amp;nbsp; 0.25&amp;nbsp; 0.30&amp;nbsp; 0.10&amp;nbsp; 0.30&amp;nbsp; 0.55&amp;nbsp; 0.25 0.65};&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* expected values of the X&lt;J&gt;&amp;nbsp;&amp;nbsp; */&lt;/J&gt;&lt;/P&gt;&lt;P&gt;Delta = {1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.15&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp; 0.175&amp;nbsp; 0.15&amp;nbsp; 0.125 0.1&amp;nbsp;&amp;nbsp; 0.075 0.05&amp;nbsp; 0.025,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.15&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.15&amp;nbsp;&amp;nbsp; 0.175 0.075 0.125 0.1&amp;nbsp;&amp;nbsp; 0.075 0.05 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp; 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp; 0.15&amp;nbsp; 0.15&amp;nbsp; 0.125 0.1&amp;nbsp;&amp;nbsp; 0.075,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.175 0.15&amp;nbsp; 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.2&amp;nbsp;&amp;nbsp; 0.175 0.15&amp;nbsp; 0.125 0.1&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.15&amp;nbsp; 0.175 0.2&amp;nbsp;&amp;nbsp; 0.225&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.2&amp;nbsp;&amp;nbsp; 0.175 0.15&amp;nbsp; 0.125,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.125 0.075 0.15&amp;nbsp;&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp; 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.125 0.175 0.1&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1&amp;nbsp;&amp;nbsp; 0.125 0.15&amp;nbsp;&amp;nbsp; 0.175 0.2&amp;nbsp;&amp;nbsp; 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.2&amp;nbsp;&amp;nbsp; 0.175,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.075 0.1&amp;nbsp;&amp;nbsp; 0.125 0.15&amp;nbsp;&amp;nbsp; 0.175 0.125 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.225 0.2&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.05&amp;nbsp; 0.075 0.1&amp;nbsp;&amp;nbsp; 0.125&amp;nbsp; 0.15&amp;nbsp; 0.175 0.2&amp;nbsp;&amp;nbsp; 0.225 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.025 0.05&amp;nbsp; 0.075 0.1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.125 0.1&amp;nbsp;&amp;nbsp; 0.175 0.2&amp;nbsp;&amp;nbsp; 0.2&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* loop approach */&lt;/P&gt;&lt;P&gt;NumSamples = 2;&lt;/P&gt;&lt;P&gt;call randseed(54321);&lt;/P&gt;&lt;P&gt;do i = 1 to NumSamples;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; X = RandMVOBinary(500, P, Delta);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* do something with each sample&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/* compare sample estimates to parameters */&lt;/P&gt;&lt;P&gt;print p, Delta;&lt;/P&gt;&lt;P&gt;create MVbinary from X;&amp;nbsp; append from X;&amp;nbsp; close MVB;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 03:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189780#M1950</guid>
      <dc:creator>thanoon</dc:creator>
      <dc:date>2014-03-01T03:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: simulation multivariate binary data</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189781#M1951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Hi Rick,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Sorry I have to reply here. I posted a question in the community discussion but have not received any response since&lt;BR /&gt;then. So here’s my question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #575757; font-size: 11pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #575757; font-size: 11pt;"&gt;I want to generate raw data for a study that has multiple treatment groups (2 treatment groups and 1 control group). Every participant in each of the groups are measured on two related outcomes ( r=.80). Then I need to repeat the same process to generate 10 studies, which I plan to meta-analyze. Each group has equal sample size (n=10). Any help with the simulation code will be&lt;BR /&gt;appreciated. Outcomes are generated from a multivariate normal distribution. The table below illustrates how the data should look like.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table-DGP.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6774_Table-DGP.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt; Thanks,&lt;/P&gt;&lt;P&gt;Rommel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 18:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/simulation-multivariate-binary-data/m-p/189781#M1951</guid>
      <dc:creator>sirerwin</dc:creator>
      <dc:date>2014-07-03T18:15:14Z</dc:date>
    </item>
  </channel>
</rss>

