<?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 PROC REG code efficiency in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308411#M16320</link>
    <description>&lt;P&gt;Hello guys i am using following codes but these are not working well as they are not efficient and taking too long. &amp;nbsp;can someone help me with more efficient codes which can sever the saem puppose. thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg data=US2 outest=period94_97 edf;&lt;BR /&gt;where datadate between '31JAN1991'd and '31DEC1993'd;&lt;BR /&gt;model ret= retm; &lt;BR /&gt;by conm; run; quit;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2016 12:16:10 GMT</pubDate>
    <dc:creator>raqthesolid</dc:creator>
    <dc:date>2016-11-01T12:16:10Z</dc:date>
    <item>
      <title>PROC REG code efficiency</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308411#M16320</link>
      <description>&lt;P&gt;Hello guys i am using following codes but these are not working well as they are not efficient and taking too long. &amp;nbsp;can someone help me with more efficient codes which can sever the saem puppose. thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg data=US2 outest=period94_97 edf;&lt;BR /&gt;where datadate between '31JAN1991'd and '31DEC1993'd;&lt;BR /&gt;model ret= retm; &lt;BR /&gt;by conm; run; quit;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 12:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308411#M16320</guid>
      <dc:creator>raqthesolid</dc:creator>
      <dc:date>2016-11-01T12:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS codes efficiency issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308435#M16321</link>
      <description>&lt;P&gt;Define not working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 05:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308435#M16321</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-01T05:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS codes efficiency issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308436#M16322</link>
      <description>&lt;P&gt;it continue to show that it is doing something for hours. i waited more than hour but nothing came up. is there any way to do it simply or putting something like noprint so that it just create the tables in libray and not the graphes and other in print window.&amp;nbsp;&lt;BR /&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 05:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308436#M16322</guid>
      <dc:creator>raqthesolid</dc:creator>
      <dc:date>2016-11-01T05:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS codes efficiency issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308438#M16323</link>
      <description>&lt;P&gt;First of all, reduce your dataset size until you get it working in a reasonable timespan. Then you can use options fullstimer to get a feel for the problem.&lt;/P&gt;
&lt;P&gt;Could you provide some info about your SAS machine (CPU, memory, storage setup)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 06:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308438#M16323</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-01T06:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS codes efficiency issue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308455#M16324</link>
      <description>&lt;P&gt;How big is your data?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at ODS SELECT to limit the output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 08:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308455#M16324</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-01T08:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG code efficiency</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308486#M16325</link>
      <description>&lt;P&gt;If you are doing this in a non-batch environment, then ODS graphics is on. If the BY variable has many levels, then most of the time is spent creating/printing tables and graphics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the PROC REG statement supports a NOPRINT option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want only want parameter estimates, and related statistics, use the OUTEST= option as you are doing.&lt;/P&gt;
&lt;P&gt;If you want also want predicted values and residuals, you can use the OUTPUT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=US2 outest=period94_97 edf NOPRINT;
where datadate between '31JAN1991'd and '31DEC1993'd;
model ret= retm; 
by conm;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can read about &lt;A href="http://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html" target="_self"&gt;the NOPRINT option and other ways to suppress ODS in SAS.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 12:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308486#M16325</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-11-01T12:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG code efficiency</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308558#M16329</link>
      <description>&lt;P&gt;Dear i tried this nonprint option as you wrote but it took almost the same time. how can i stop all the graphics ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 16:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308558#M16329</guid>
      <dc:creator>raqthesolid</dc:creator>
      <dc:date>2016-11-01T16:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG code efficiency</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308572#M16331</link>
      <description>&lt;P&gt;As it says in the article that I linked to, the NOPRINT option also suppresses the graphics. When you use the NOPRINT option, you should see no output of any kind.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With only one regressor, this PROC REG statement should be very fast. Please answer the following questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Are there any NOTES or WARNINGs in the SAS log?&lt;/LI&gt;
&lt;LI&gt;How many distinct levels of the BY variable are being&amp;nbsp;used? &amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Is the PROC REG code that you showed the actual code that you are submitting, or are there additional options that you are not showing?&lt;/LI&gt;
&lt;LI&gt;How many observations are used? (= number of observations included by the WHERE clause)&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 01 Nov 2016 17:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308572#M16331</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-11-01T17:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG code efficiency</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308645#M16340</link>
      <description>&lt;P&gt;there are no warnings or log reports on it becuase it remain busy as long as i see for more than hours,&lt;/P&gt;
&lt;P&gt;my whole date has about 387323 observaton for 20 years current where statement includes only 3 years,&lt;/P&gt;
&lt;P&gt;i am using the same codes as i shown you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;by variable is company names and there are more than 1000 companies.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 01:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308645#M16340</guid>
      <dc:creator>raqthesolid</dc:creator>
      <dc:date>2016-11-02T01:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG code efficiency</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308647#M16341</link>
      <description>Thank you very much i just realized that i was using run after quit; get rid of that and it worked with noprint. thinks again</description>
      <pubDate>Wed, 02 Nov 2016 02:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-code-efficiency/m-p/308647#M16341</guid>
      <dc:creator>raqthesolid</dc:creator>
      <dc:date>2016-11-02T02:06:27Z</dc:date>
    </item>
  </channel>
</rss>

