<?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: General Question regarding the speed to run simulation studies using SAS 9.4 in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/General-Question-regarding-the-speed-to-run-simulation-studies/m-p/164071#M1580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. I read that article, actually I used DO in my simulation codes instead of BY. Your 'BY' method is efficient, but since I need Bootstrap method to calculate 95% CI, so I cannot concatenate the data sets together and use 'BY' method, since it is too big. Actually, my problem is not code specific. When the codes generate the first several hundred simulated data set using DO loop, the program runs very fast, but as time goes on, it looks like something is stored in the memory that slows down the program. That is what I observed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 13:54:35 GMT</pubDate>
    <dc:creator>souwwang</dc:creator>
    <dc:date>2014-09-30T13:54:35Z</dc:date>
    <item>
      <title>General Question regarding the speed to run simulation studies using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/General-Question-regarding-the-speed-to-run-simulation-studies/m-p/164069#M1578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;I used SAS 9.4 in a laptop to run some simulation studies. At beginning, the program runs very fast, just keep running and running. After the program ran for several hours, it become much slower. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;For example, at beginning, it will take the program 2 hrs to finish one simulation scenario, but it may take two days to finish similar scenario some time later. I checked the log and found that SAS will stop for several minutes and do nothing after it finishes one simulation data sets, then it will continue. Any ideas about what happened, and how I can resolve it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;Thanks for the help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 14:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/General-Question-regarding-the-speed-to-run-simulation-studies/m-p/164069#M1578</guid>
      <dc:creator>souwwang</dc:creator>
      <dc:date>2014-09-29T14:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: General Question regarding the speed to run simulation studies using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/General-Question-regarding-the-speed-to-run-simulation-studies/m-p/164070#M1579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We probably need more details, but my guess is that you are appending the results of each simulation. Read this article and see if it describes what you are attempting: &lt;A href="http://blogs.sas.com/content/iml/2012/07/18/simulation-in-sas-the-slow-way-or-the-by-way/" title="http://blogs.sas.com/content/iml/2012/07/18/simulation-in-sas-the-slow-way-or-the-by-way/"&gt;Simulation in SAS&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't describe what you are doing, post some of your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 14:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/General-Question-regarding-the-speed-to-run-simulation-studies/m-p/164070#M1579</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-09-29T14:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: General Question regarding the speed to run simulation studies using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/General-Question-regarding-the-speed-to-run-simulation-studies/m-p/164071#M1580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. I read that article, actually I used DO in my simulation codes instead of BY. Your 'BY' method is efficient, but since I need Bootstrap method to calculate 95% CI, so I cannot concatenate the data sets together and use 'BY' method, since it is too big. Actually, my problem is not code specific. When the codes generate the first several hundred simulated data set using DO loop, the program runs very fast, but as time goes on, it looks like something is stored in the memory that slows down the program. That is what I observed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 13:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/General-Question-regarding-the-speed-to-run-simulation-studies/m-p/164071#M1580</guid>
      <dc:creator>souwwang</dc:creator>
      <dc:date>2014-09-30T13:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: General Question regarding the speed to run simulation studies using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/General-Question-regarding-the-speed-to-run-simulation-studies/m-p/164072#M1581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. In SAS/IML that is one way to do it if you have big data: use a DO loop for each bootstrap resample and store the statistics for each resample in an array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you need to preallocate your array for the results.&amp;nbsp; It sounds like you might be using a concatenation operator inside the DO loop to dynamically increase the array.&amp;nbsp; Read this article: &lt;A href="http://blogs.sas.com/content/iml/2011/06/20/pre-allocate-arrays-to-improve-efficiency/" title="http://blogs.sas.com/content/iml/2011/06/20/pre-allocate-arrays-to-improve-efficiency/"&gt; Pre-allocate arrays to improve efficiency - The DO Loop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 14:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/General-Question-regarding-the-speed-to-run-simulation-studies/m-p/164072#M1581</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-09-30T14:45:13Z</dc:date>
    </item>
  </channel>
</rss>

