<?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: PROC MODEL for Multiple Models in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MODEL-for-Multiple-Models/m-p/626390#M77449</link>
    <description>&lt;P&gt;Moved to Procedures forum.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 03:16:59 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-02-21T03:16:59Z</dc:date>
    <item>
      <title>PROC MODEL for Multiple Models</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MODEL-for-Multiple-Models/m-p/626309#M77447</link>
      <description>&lt;P&gt;Suppose there is a regression.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://latex.codecogs.com/svg.latex?Y_t%3D%5Calpha+%5Cbeta%20X_t+%5Cgamma%20W_t+%5Cvarepsilon_t." border="0" /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
do t=1 to 5000;
x=rannor(1);
w=rannor(1);
y=x+w+rannor(1);
output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;PROC REG easily estimates the following three regressions.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg;
model y=x;
model y=w;
model y=x w;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I need to use a Newey–West standard error, i.e. PROC MODEL. I tried the following, which didn't work correctly.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc model;
y=a+b*x;
fit y/gmm kernel=(bart,2,0) vardef=n;
y=c+d*w;
fit y/gmm kernel=(bart,2,0) vardef=n;
y=e+f*x+g*w;
fit y/gmm kernel=(bart,2,0) vardef=n;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Should one repeat PROC MODEL thrice to estimate the three regressions?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 19:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MODEL-for-Multiple-Models/m-p/626309#M77447</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-02-20T19:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MODEL for Multiple Models</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MODEL-for-Multiple-Models/m-p/626390#M77449</link>
      <description>&lt;P&gt;Moved to Procedures forum.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 03:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MODEL-for-Multiple-Models/m-p/626390#M77449</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-02-21T03:16:59Z</dc:date>
    </item>
  </channel>
</rss>

