<?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 Simulation in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Simulation-in-SAS/m-p/387600#M92935</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have 48 industries and the number of mergers in each industry in each month from the year 1980 to 1989 (120 Months).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Taking the total number of bids over the entire period&amp;nbsp;for a given industry&lt;/STRONG&gt;, I want to simulate 1000 distributions of that number of occurrences of industry member involvement in a bid over a 120-month period by randomly assigning each occurrence to a month where the probability of assignment is 1/120 for each month.&amp;nbsp;I have no idea where to start.&amp;nbsp; Please help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried the following code. But it did not work:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sasfile have load;&lt;BR /&gt;proc surveyselect data=have&amp;nbsp;out=outboot&lt;BR /&gt;seed=30459584&lt;BR /&gt;method=urs samprate=1 outhits&lt;BR /&gt;rep=1000 noprint;&lt;BR /&gt;run;&lt;BR /&gt;sasfile have&amp;nbsp;close;&lt;BR /&gt;ods listing close;&lt;BR /&gt;proc sort data=outboot; by Aindus48 year month Replicate; run;&lt;BR /&gt;proc univariate data=outboot noprint;&lt;BR /&gt;var count;&lt;BR /&gt;by Aindus48 year month Replicate;&lt;BR /&gt;output out=outall kurtosis=curt;&lt;BR /&gt;run;&lt;BR /&gt;ods listing;&lt;BR /&gt;proc univariate data=outall noprint;&lt;BR /&gt;var curt;&lt;BR /&gt;by Aindus48 year month;&lt;BR /&gt;output out=final pctlpts=2.5, 97.5 pctlpre=ci;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Aug 2017 23:37:08 GMT</pubDate>
    <dc:creator>nazmul</dc:creator>
    <dc:date>2017-08-12T23:37:08Z</dc:date>
    <item>
      <title>Simulation in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simulation-in-SAS/m-p/387600#M92935</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have 48 industries and the number of mergers in each industry in each month from the year 1980 to 1989 (120 Months).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Taking the total number of bids over the entire period&amp;nbsp;for a given industry&lt;/STRONG&gt;, I want to simulate 1000 distributions of that number of occurrences of industry member involvement in a bid over a 120-month period by randomly assigning each occurrence to a month where the probability of assignment is 1/120 for each month.&amp;nbsp;I have no idea where to start.&amp;nbsp; Please help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried the following code. But it did not work:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sasfile have load;&lt;BR /&gt;proc surveyselect data=have&amp;nbsp;out=outboot&lt;BR /&gt;seed=30459584&lt;BR /&gt;method=urs samprate=1 outhits&lt;BR /&gt;rep=1000 noprint;&lt;BR /&gt;run;&lt;BR /&gt;sasfile have&amp;nbsp;close;&lt;BR /&gt;ods listing close;&lt;BR /&gt;proc sort data=outboot; by Aindus48 year month Replicate; run;&lt;BR /&gt;proc univariate data=outboot noprint;&lt;BR /&gt;var count;&lt;BR /&gt;by Aindus48 year month Replicate;&lt;BR /&gt;output out=outall kurtosis=curt;&lt;BR /&gt;run;&lt;BR /&gt;ods listing;&lt;BR /&gt;proc univariate data=outall noprint;&lt;BR /&gt;var curt;&lt;BR /&gt;by Aindus48 year month;&lt;BR /&gt;output out=final pctlpts=2.5, 97.5 pctlpre=ci;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 23:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simulation-in-SAS/m-p/387600#M92935</guid>
      <dc:creator>nazmul</dc:creator>
      <dc:date>2017-08-12T23:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Simulation in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simulation-in-SAS/m-p/387608#M92940</link>
      <description>&lt;P&gt;Please check my answer in your original question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Calculating-wave-of-mergers/m-p/387534" target="_self"&gt;https://communities.sas.com/t5/General-SAS-Programming/Calculating-wave-of-mergers/m-p/387534&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2017 04:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simulation-in-SAS/m-p/387608#M92940</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-08-13T04:05:43Z</dc:date>
    </item>
  </channel>
</rss>

