<?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: Noprint in Proc Model in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Noprint-in-Proc-Model/m-p/446822#M112178</link>
    <description>&lt;P&gt;Look at ODS SELECT and ODS EXCLUDE. It allows you to control the output and suppressing the output can speed up your processes.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Mar 2018 15:10:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-03-19T15:10:21Z</dc:date>
    <item>
      <title>Noprint in Proc Model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Noprint-in-Proc-Model/m-p/446816#M112176</link>
      <description>&lt;P&gt;Hello and good day.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm running the code below for my project but it takes very long time, so I wondered if it was a way ... so that it did not print? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Running a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Fama-Macbeth&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;regression in SAS is quite easy, and doesn't require any special macros. The following code will run cross-sectional regressions by year for all firms and report the means.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods listing close;
ods output parameterestimates=pe;
proc reg data=dset;
 by year;
 model depvar = indvars; run;
quit;
ods listing;

proc means data=pe mean std t probt;
 var estimate; class variable;
run;&lt;/PRE&gt;&lt;P&gt;Since the results from this approach give a time-series, it is common practice to use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Newey-West&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;adjustment for standard errors. Unlike Stata, this is somewhat complicated in SAS, but can be done as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sort data=pe; by variable; run;

%let lags=3;
ods output parameterestimates=nw;
ods listing close;
proc model data=pe;
 by variable;
 instruments / intonly;
 estimate=a;
 fit estimate / gmm kernel=(bart,%eval(&amp;amp;lags+1),0) vardef=n; run;
quit;
ods listing;

proc print data=nw; id variable;
 var estimate--df; format estimate stderr 7.4;
run;&lt;/PRE&gt;&lt;P&gt;"&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 14:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Noprint-in-Proc-Model/m-p/446816#M112176</guid>
      <dc:creator>TorTheHammer</dc:creator>
      <dc:date>2018-03-19T14:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Noprint in Proc Model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Noprint-in-Proc-Model/m-p/446822#M112178</link>
      <description>&lt;P&gt;Look at ODS SELECT and ODS EXCLUDE. It allows you to control the output and suppressing the output can speed up your processes.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 15:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Noprint-in-Proc-Model/m-p/446822#M112178</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-19T15:10:21Z</dc:date>
    </item>
  </channel>
</rss>

