<?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: How I change the number of samples in this code from 10 to 1000? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-I-change-the-number-of-samples-in-this-code-from-10-to-1000/m-p/532187#M145800</link>
    <description>&lt;PRE&gt;201  data work.samples;
202  do samp = 1 to 1000;
203  do t = 1 to 100;
204        u = rannor(1996)*5;
205        x = 100 + 3*rannor(6991);
206        y = 10 + 0.5*x + u;
207        output;
208    end;
209  end;
210  run;

NOTE: The data set WORK.SAMPLES has 100000 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.12 seconds
      cpu time            0.01 seconds

&lt;/PRE&gt;
&lt;P&gt;0.12 seconds to create a data set of 100000 records with samp=1000. And mine isn't a particularly fast computer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you increased the value of T as well that might lead to more time. Show the code you actually submitted when testing SAMP= 1 to 1000&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 20:28:02 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-02-01T20:28:02Z</dc:date>
    <item>
      <title>How I change the number of samples in this code from 10 to 1000?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-I-change-the-number-of-samples-in-this-code-from-10-to-1000/m-p/532176#M145796</link>
      <description>&lt;P&gt;In this code how do I change the sample size of data from 10 to 1000?:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; samples;&lt;/P&gt;&lt;P&gt;do samp = &lt;STRONG&gt;1&lt;/STRONG&gt; to &lt;STRONG&gt;10&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;do t = &lt;STRONG&gt;1&lt;/STRONG&gt; to &lt;STRONG&gt;100&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; u = rannor(&lt;STRONG&gt;1996&lt;/STRONG&gt;)*&lt;STRONG&gt;5&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = &lt;STRONG&gt;100&lt;/STRONG&gt; + &lt;STRONG&gt;3&lt;/STRONG&gt;*rannor(&lt;STRONG&gt;6991&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = &lt;STRONG&gt;10&lt;/STRONG&gt; + &lt;STRONG&gt;0.5&lt;/STRONG&gt;*x + u;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I just change the number 10 to 1000? I just tried that in SAS and now SAS has been loading for awhile. I'm worried I got it jammed and now it's messed up.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 19:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-I-change-the-number-of-samples-in-this-code-from-10-to-1000/m-p/532176#M145796</guid>
      <dc:creator>khalillx</dc:creator>
      <dc:date>2019-02-01T19:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: How I change the number of samples in this code from 10 to 1000?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-I-change-the-number-of-samples-in-this-code-from-10-to-1000/m-p/532179#M145798</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;Do I just change the number 10 to 1000?"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That's correct&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"I just tried that in SAS and now SAS has been loading for awhile."&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That's not likely. Maybe you need to close and restart&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 19:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-I-change-the-number-of-samples-in-this-code-from-10-to-1000/m-p/532179#M145798</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-01T19:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: How I change the number of samples in this code from 10 to 1000?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-I-change-the-number-of-samples-in-this-code-from-10-to-1000/m-p/532187#M145800</link>
      <description>&lt;PRE&gt;201  data work.samples;
202  do samp = 1 to 1000;
203  do t = 1 to 100;
204        u = rannor(1996)*5;
205        x = 100 + 3*rannor(6991);
206        y = 10 + 0.5*x + u;
207        output;
208    end;
209  end;
210  run;

NOTE: The data set WORK.SAMPLES has 100000 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.12 seconds
      cpu time            0.01 seconds

&lt;/PRE&gt;
&lt;P&gt;0.12 seconds to create a data set of 100000 records with samp=1000. And mine isn't a particularly fast computer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you increased the value of T as well that might lead to more time. Show the code you actually submitted when testing SAMP= 1 to 1000&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 20:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-I-change-the-number-of-samples-in-this-code-from-10-to-1000/m-p/532187#M145800</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-01T20:28:02Z</dc:date>
    </item>
  </channel>
</rss>

