<?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 to speed up multiple regressions in SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-speed-up-multiple-regressions-in-SAS/m-p/670281#M23299</link>
    <description>&lt;P&gt;Do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;at the start of your code, so later only the OUTPUT destination is open.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jul 2020 09:34:44 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-07-18T09:34:44Z</dc:date>
    <item>
      <title>How to speed up multiple regressions in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-speed-up-multiple-regressions-in-SAS/m-p/670280#M23298</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem to speed up my regressions in SAS using the macro below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to suppress the regression results in the results window, however, the Noprint function does not work here because it sends no output to ODS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried "ODS select none" as well as "ODS exclude none", but the results window then still appears. I would be very glad if someone could help me out. Any ideas on how to speed up the macro (multiple regressions) below or on how to suppress the output in the results window while still calculating the output tables are highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you a lot for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;STRONG&gt;*Macro to run several regressions using a loop (based on a startyear);&lt;/STRONG&gt;
%Macro Startermacro (window=,dataset_in=);
	%do startyear = 2003 %to %eval(2014 - &amp;amp;window. + 1);

&lt;STRONG&gt;*Run a regression of earnings on lagged variables and save the output statistics;&lt;/STRONG&gt;
proc reg data=&amp;amp;dataset_in. ;
	model earn_w = L1_earn_w L1_negE_w L1_NExE_w;
	where &amp;amp;startyear. &amp;lt;= HouFyear &amp;lt;= %eval(&amp;amp;startyear. + &amp;amp;window. - 1);
	ODS OUTPUT parameterestimates = par_est_&amp;amp;startyear.;
run; quit;

&lt;STRONG&gt;*Write the start year in a separate column;&lt;/STRONG&gt; 
		data par_est_&amp;amp;startyear.;
			set par_est_&amp;amp;startyear.;
			startyear = %eval(&amp;amp;startyear. + &amp;amp;window. - 1);
		run;

&lt;STRONG&gt;*Combine all outputs to one file;&lt;/STRONG&gt;
	data combined_par_est;
		set par_est_:;
	run;
%end;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 09:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-speed-up-multiple-regressions-in-SAS/m-p/670280#M23298</guid>
      <dc:creator>Tim_sas_</dc:creator>
      <dc:date>2020-07-18T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to speed up multiple regressions in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-speed-up-multiple-regressions-in-SAS/m-p/670281#M23299</link>
      <description>&lt;P&gt;Do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;at the start of your code, so later only the OUTPUT destination is open.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 09:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-speed-up-multiple-regressions-in-SAS/m-p/670281#M23299</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-18T09:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to speed up multiple regressions in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-speed-up-multiple-regressions-in-SAS/m-p/670282#M23300</link>
      <description>&lt;P&gt;Thank you Kurt, this was very helpful and worked excellently!&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 09:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-speed-up-multiple-regressions-in-SAS/m-p/670282#M23300</guid>
      <dc:creator>Tim_sas_</dc:creator>
      <dc:date>2020-07-18T09:48:33Z</dc:date>
    </item>
  </channel>
</rss>

