<?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 panel procedure with too many instruments? in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-panel-procedure-with-too-many-instruments/m-p/566347#M3576</link>
    <description>Thanks a lot for the answer. I did use FD data, manually processed, but I guess your code is simpler and more intuitive. And the rest of your answer is exactly what I needed to know. Thank you again.</description>
    <pubDate>Sat, 15 Jun 2019 02:59:09 GMT</pubDate>
    <dc:creator>LzEr23</dc:creator>
    <dc:date>2019-06-15T02:59:09Z</dc:date>
    <item>
      <title>Proc panel procedure with too many instruments?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-panel-procedure-with-too-many-instruments/m-p/562788#M3566</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; am having some trouble with running a dynamic panel data model using GMM estimation with Proc Panel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, it does provide me with outcome, but it just doesn't seem to be correctly estimated.&lt;/P&gt;&lt;P&gt;One, two-step GMM doesn't work at all. It gives me the following message:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "R: No residual in the model to analyze. Computations will not be performed."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two, one-step estimation does give an outcome table, but the Sargan test p-value is 1.0000 which is too good.&lt;/P&gt;&lt;P&gt;As far as I know, this seems to be related to identification issue. Probably due to too many instruments to be estimated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I'd really appreciate if there's anyone who can help me out solving this issue.&lt;/P&gt;&lt;P&gt;1. Any other ways to fix this problem, still employing the panel data model.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;(maybe I have coded something inappropriately)&lt;/P&gt;&lt;P&gt;2. Would estimating each panel separately using GMM help resolving this issue? would it have same implication, apart from panel effect adjustment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the data structure and coding that I have used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;library: work&lt;/P&gt;&lt;P&gt;table name: work.panel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;panel id column: indip&amp;nbsp; &amp;nbsp; (n=5)&lt;/P&gt;&lt;P&gt;time id column: year&amp;nbsp; &amp;nbsp; &amp;nbsp; (t=1981, 1982, ..., 1998)&lt;/P&gt;&lt;P&gt;no. of obs=90&lt;/P&gt;&lt;P&gt;no. of obs=85 when Y_1 is employed in the model&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dependent var: Y&lt;/P&gt;&lt;P&gt;independent var: Y_1, A1, A2, A3, A4, A5, B1, B2, C1, C2, D1&amp;nbsp; &amp;nbsp; &amp;nbsp;(total of 11)&lt;/P&gt;&lt;P&gt;(Y_1 is lagged term of Y)&lt;/P&gt;&lt;P&gt;codes used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc panel data=work.panel;&lt;BR /&gt;&amp;nbsp; id indip year;&lt;BR /&gt;&amp;nbsp; inst depvar;&lt;BR /&gt;&amp;nbsp; model Y=Y_1 A1 A2 A3 A4 A5 B1 B2 C1 C2 D1 / gmm maxband=15 artest=2 noint;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would really be helpful if I can get some advice on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 07:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-panel-procedure-with-too-many-instruments/m-p/562788#M3566</guid>
      <dc:creator>LzEr23</dc:creator>
      <dc:date>2019-05-31T07:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc panel procedure with too many instruments?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-panel-procedure-with-too-many-instruments/m-p/563315#M3573</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First of all, I don't think you are estimating a dynamic panel model with your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do dynamic GMM, the very first thing is to do first difference to the model and run GMM on the differenced equation. You can find reference in PANEL's user manual detail section for the equations and instrument matrix. Your code seems run everything on raw data.&lt;/P&gt;
&lt;P&gt;Try the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;proc panel data=work.panel;&lt;/SPAN&gt;&lt;BR style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;nbsp; id indip year;&lt;/SPAN&gt;&lt;BR style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;nbsp; model Y=A1 A2 A3 A4 A5 B1 B2 C1 C2 D1 / dyndiff;&lt;/SPAN&gt;&lt;BR style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DYNDIFF takes care of everything for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, I notice that you only have N=5, and T=20. When T is large it means instruments increase quadratically, and too many instruments bias the estimators. The asymptotic properties is coming from large N. So you can try to limit the number of IVs by using "maxband" option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At last, GMM=1 or 2 doesn't affect the consistency of the estimators, it's just the matter of efficiency or not. I feel like if you are in a large T and small N scenario, it won't be efficient anyway, so it doesn't matter if you are using gmm1 or gmm2.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 16:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-panel-procedure-with-too-many-instruments/m-p/563315#M3573</guid>
      <dc:creator>xyz0505</dc:creator>
      <dc:date>2019-06-03T16:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc panel procedure with too many instruments?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-panel-procedure-with-too-many-instruments/m-p/566347#M3576</link>
      <description>Thanks a lot for the answer. I did use FD data, manually processed, but I guess your code is simpler and more intuitive. And the rest of your answer is exactly what I needed to know. Thank you again.</description>
      <pubDate>Sat, 15 Jun 2019 02:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-panel-procedure-with-too-many-instruments/m-p/566347#M3576</guid>
      <dc:creator>LzEr23</dc:creator>
      <dc:date>2019-06-15T02:59:09Z</dc:date>
    </item>
  </channel>
</rss>

