<?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 in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410205#M21428</link>
    <description>&lt;P&gt;I have to put some mean and std that I have too in order to simulate them for each normal random variable. My parameters are the following :&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mean.PNG" style="width: 198px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16399i552E99BD42D0936E/image-size/large?v=v2&amp;amp;px=999" role="button" title="mean.PNG" alt="mean.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How to use this parameters into your code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for the quick answer&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2017 13:20:42 GMT</pubDate>
    <dc:creator>madix</dc:creator>
    <dc:date>2017-11-03T13:20:42Z</dc:date>
    <item>
      <title>simulation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410105#M21423</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering how to simulate a gaussian vector with 3 random variable with proc IML in SAS, and to determine the covariance matrix of this vector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone could help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 08:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410105#M21423</guid>
      <dc:creator>madix</dc:creator>
      <dc:date>2017-11-03T08:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: simulation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410195#M21425</link>
      <description>&lt;P&gt;calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 12:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410195#M21425</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-03T12:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: simulation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410197#M21426</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
call randseed(1);
prob = {0.3,0.6,0.1};
NumTrials = 10;
N = 100;
x = RandMultinomial(N,NumTrials,prob);

SampleMean = mean(x);
SampleCov = cov(x);
print x,SampleMean, SampleCov ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410197#M21426</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-03T13:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: simulation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410200#M21427</link>
      <description>&lt;P&gt;Use the RANDNORMAL function, as shown in the article &lt;A href="https://blogs.sas.com/content/iml/2011/01/12/sampling-from-the-multivariate-normal-distribution.html" target="_self"&gt;"Sampling from the multivariate normal distribution."&lt;/A&gt;&amp;nbsp; If you want the three components to be independent, specify the identity matrix (I(3)) as a parameter. For correlated data, specify the population covariance matrix. You can use the COV function on the simulated data to&amp;nbsp;estimate the population covariance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, KSharp's&amp;nbsp;program simulates multinomial data, which is not the same as multivariate normal ("Gaussian").&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:12:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410200#M21427</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-03T13:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: simulation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410205#M21428</link>
      <description>&lt;P&gt;I have to put some mean and std that I have too in order to simulate them for each normal random variable. My parameters are the following :&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mean.PNG" style="width: 198px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16399i552E99BD42D0936E/image-size/large?v=v2&amp;amp;px=999" role="button" title="mean.PNG" alt="mean.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How to use this parameters into your code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for the quick answer&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410205#M21428</guid>
      <dc:creator>madix</dc:creator>
      <dc:date>2017-11-03T13:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: simulation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410209#M21429</link>
      <description>&lt;P&gt;This is the only parameter that I have btw. I don't have the cov matrix. I just have the mean and the std for each cordonate of the vector.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410209#M21429</guid>
      <dc:creator>madix</dc:creator>
      <dc:date>2017-11-03T13:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: simulation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410216#M21431</link>
      <description>&lt;P&gt;From what you have said, I assume you want three independent Gaussian vectors.&amp;nbsp;That is equivalent to a diagonal covariance matrix in the RANDNORMAL function. Based on your table, you would use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mean = {0 0 0};&amp;nbsp; /* mean of population */&lt;/P&gt;
&lt;P&gt;Cov = diag( {0.00264, 0.00286, 0.00590} );&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/simulation/m-p/410216#M21431</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-03T13:39:11Z</dc:date>
    </item>
  </channel>
</rss>

