<?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: GMM using Proc Panel in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/312426#M2048</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. As far as getting p-values and other inference for combinations of parameter estimates (e.g. Beta_2 + Beta_3); you can issue a TEST statement, such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;TEST X1 + X1_1 = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which will give you the p-value for the combined effect Beta_2 + Beta_3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. For testing across two sub-samples, there is nothing currently in PROC PANEL to do this directly. As an alternative, I would fit it as one regression, placing an indicator variable for small vs. big firm any place that will take it. &amp;nbsp;That is, you would have a main effect for this indicator, and then interact that indicator with all the regressors in the model. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2016 19:10:26 GMT</pubDate>
    <dc:creator>bobby_sas</dc:creator>
    <dc:date>2016-11-17T19:10:26Z</dc:date>
    <item>
      <title>GMM using Proc Panel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/310562#M2008</link>
      <description>&lt;DIV class="lia-quilt-row lia-quilt-row-forum-message-main"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-left lia-quilt-column-main-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-author lia-component-author"&gt;
&lt;DIV class="lia-message-author-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lia-message-author-post-count"&gt;Posts: 138&lt;/DIV&gt;
&lt;DIV class="lia-message-author-ipaddress"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV class="lia-message-heading lia-component-message-header"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-subject"&gt;
&lt;H1&gt;GMM Estimation&lt;/H1&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV class="lia-message-options"&gt;
&lt;DIV id="actionMenuDropDown_0" class="lia-menu-navigation-wrapper lia-menu-action message-menu"&gt;
&lt;DIV class="lia-menu-navigation"&gt;
&lt;DIV class="dropdown-default-item"&gt;&lt;A id="dropDownLink_0" class="lia-js-menu-opener default-menu-option lia-js-click-menu lia-link-navigation" title="Show option menu" href="https://communities.sas.com/t5/SAS-Statistical-Procedures/GMM-Estimation/m-p/310557" target="_blank"&gt;Options&lt;/A&gt;
&lt;DIV class="dropdown-positioning"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"&gt;&lt;SPAN class="DateTime lia-message-posted-on lia-component-common-widget-date"&gt; &lt;SPAN class="local-friendly-date"&gt; 14 hours ago &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="messagebodydisplay_0" class="lia-message-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am experiencing problem on using PROC PANEL in running GMM model. I have a dataset (attached) with the following variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GVKEY = firm identification code&lt;/P&gt;
&lt;P&gt;FYEAR = financial year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Samples:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DIV = dummy variable 1 or 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dependent variable:&lt;/P&gt;
&lt;P&gt;RD = research &amp;amp; development costs, R&amp;amp;D&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Independent variables:&lt;/P&gt;
&lt;P&gt;RDRD = quadratic term of R&amp;amp;D&lt;/P&gt;
&lt;P&gt;MB = market to book ratio&lt;/P&gt;
&lt;P&gt;SGWTH =&amp;nbsp;sales growth&lt;/P&gt;
&lt;P&gt;CHG_WC = change of main effect&lt;/P&gt;
&lt;P&gt;STKISSUES = stock issues&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following is my requirement&amp;nbsp;s:&lt;/P&gt;
&lt;P&gt;1. I wish to run a GMM with&amp;nbsp;dependent variable, RD. lagged RD should be included as independent variable in the GMM model for two samples, DIV = 0 and DIV = 1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. No lagged value of the independent variables of RDRD,&amp;nbsp;MB &amp;nbsp;and SGWTH.&lt;/P&gt;
&lt;P&gt;3. Lagged value of the independent variables of CHG_WC and STKISSUES are to be generated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. To assess instrument validity using AR and Sargan test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using the following program to run the regression, however, the results were not generated due to shortage of memory:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=want1;&lt;BR /&gt;by gvkey fyear;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc panel data=FC.want1;&lt;BR /&gt;by DIV;&lt;BR /&gt;id gvkey fyear;&lt;BR /&gt;model RD = LAGRD RDRD MB SGWTH CHG_WC STKISSUES &lt;BR /&gt;/ gmm nolevels twostep maxband=5 artest = 2;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure is there any problem on the above program? Can Proc Panel help to generate the lagged variables of&amp;nbsp;&lt;SPAN&gt;CHG_WC and STKISSUES authomatically?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you and hope to get reply soon.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MSPAK&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="attachments" class="Attachments preview-attachments"&gt;
&lt;DIV class="lia-attachment attachment-1 lia-attachment-row"&gt;&lt;BR class="lia-img-icon-attachment lia-fa-icon lia-fa-attachment" title="Attachment" /&gt;
&lt;DIV class="lia-attachment-row-element lia-media-document"&gt;&lt;A id="link_10" class="lia-link-navigation" href="https://communities.sas.com/kntur85557/attachments/kntur85557/statistical_procedures/16412/1/want1.zip" download="" target="_blank"&gt;&lt;IMG class="lia-img-icon-download lia-fa-icon lia-fa-download" src="https://communities.sas.com/skins/images/53F539D59AF95F4A52A10E48BE592D2E/mondrian-e5d3bd17/images/icon_download.png" border="0" /&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-rating-metoo lia-component-body"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-forum-message-footer"&gt;&lt;BR class="lia-message-notify lia-component-report-abuse" /&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-10 lia-quilt-column-right lia-quilt-column-footer-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV class="lia-message-actions lia-component-actions"&gt;
&lt;DIV class="lia-button-group"&gt;
&lt;DIV class="lia-message-kudos"&gt;
&lt;DIV id="kudosButtonV2" class="KudosButton lia-button-image-kudos-wrapper lia-component-kudos-widget-button-version-2 lia-component-kudos-widget-button-horizontal lia-component-kudos-widget-button" data-lia-kudos-id="310354"&gt;
&lt;DIV class="lia-button-image-kudos lia-button-image-kudos-horizontal lia-button-image-kudos-enabled lia-button-image-kudos-not-kudoed lia-button"&gt;
&lt;DIV class="lia-button-image-kudos-give" title="Click here to give likes to this post."&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-actions-secondary lia-component-secondary-actions"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Nov 2016 03:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/310562#M2008</guid>
      <dc:creator>mspak</dc:creator>
      <dc:date>2016-11-10T03:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: GMM using Proc Panel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/311436#M2034</link>
      <description>&lt;P&gt;I would advise three things to do before proceeding with this analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. There are many observations with missing values in one or more of the variables in the regression. Deleting those observations creates significant gaps in the time series for each firms. By default, PROC PANEL will calculate lags based on observations that are consecutive in time, regardless of the time gap. If this is what you want, then you are good. &amp;nbsp;If not, then this would disqualify a bigger subset of firms from the analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I would advise against using DIV as a BY-group since DIV varies within firms. &amp;nbsp;Doing so would split the data in two and just exacerbate the problem in 1. &amp;nbsp;I would recommend using DIV as a covarate in the model instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. You can create lagged variables in PROC PANEL by using what I call "dry-run" mode. &amp;nbsp;For example,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;FONT color="#333399"&gt;proc panel data = want1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#333399"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; id gvkey fyear;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#333399"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; lag rd(1) chg_wc(1) stkissues(1) / out = want2;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#333399"&gt;&amp;nbsp; run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#333399"&gt;&lt;SPAN&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;I would start there. &amp;nbsp;Please email if you have any further questions.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#333399"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 15:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/311436#M2034</guid>
      <dc:creator>bobby_sas</dc:creator>
      <dc:date>2016-11-14T15:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: GMM using Proc Panel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/311613#M2036</link>
      <description>&lt;P&gt;Thank you bobby for your suggested program for generating lags using proc panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have another question on proc panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is stated in the user's guide that the DEPVAR options in INSTRUMENTS statement specifies instruments related to dependent variable. With nothing specified, both level and differenced dependent variables are included in the instrument matrix. My question is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If nothing is specified for DEPVAR option, how do I know how many lags of dependent variables are used in level and differenced? Does SAS provide an option to know the level of lags used?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MSPAK&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 06:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/311613#M2036</guid>
      <dc:creator>mspak</dc:creator>
      <dc:date>2016-11-15T06:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: GMM using Proc Panel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/311811#M2040</link>
      <description>&lt;P&gt;Yes, several options control lags/leads in the instrument matrix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tha MAXBAND= options specifies&amp;nbsp;the maximum number of time periods (per instrumental variable) that are allowed into the moment condition. This is the case for dependant and independent variables. In order to fully understand how these moment conditions are created you might also interested in checking the BANDOPT option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BANDOPT=CENTERED | LEADING | TRAILING specifies which observations are included in the instrument list when the MAXBAND= option is specified. You can specify the following values: CENTERED uses both leading and trailing observations. LEADING uses only leading observations. TRAILING uses only trailing observations.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 18:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/311811#M2040</guid>
      <dc:creator>bbridgerb</dc:creator>
      <dc:date>2016-11-15T18:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: GMM using Proc Panel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/311888#M2041</link>
      <description>&lt;P&gt;Thank you &lt;SPAN class="UserName lia-user-name lia-user-rank-SAS-Employee"&gt; &lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #007dc3;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45311" target="_self"&gt;&lt;SPAN class=""&gt;bbridgerb&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; for reply. I will try to run the regression and see whether I can obtain how many lagged levels are used for the equation in differences and lagged differences used as instruments for the equation in levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have another few question is that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Referring to the following is the model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y = β1Y(t-1) + β2X1(t) + β3X1 (t-1) + β4X2 (t) + β5X2(t-1).....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After running the GMM regression using proc panel, I should be able to obtain all the coefficients β1, β2, and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get the combined coefficient for X1 by totaling β2+β3. However, how can i ontain the combined p-value of X1. I think I cannot just totaling the p-value of them. Could anyone suggest an option in proc panel or any SAS program that can be used for GMM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. How to get difference-Hansen test (p-value) from the GMM if I run the above regressions for two samples, for example, Big and Small firms? If I need to make a comparison, do you think I need to run GMM for these two samples using a single program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MSPAK&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 03:05:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/311888#M2041</guid>
      <dc:creator>mspak</dc:creator>
      <dc:date>2016-11-16T03:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: GMM using Proc Panel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/312426#M2048</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. As far as getting p-values and other inference for combinations of parameter estimates (e.g. Beta_2 + Beta_3); you can issue a TEST statement, such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;TEST X1 + X1_1 = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which will give you the p-value for the combined effect Beta_2 + Beta_3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. For testing across two sub-samples, there is nothing currently in PROC PANEL to do this directly. As an alternative, I would fit it as one regression, placing an indicator variable for small vs. big firm any place that will take it. &amp;nbsp;That is, you would have a main effect for this indicator, and then interact that indicator with all the regressors in the model. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 19:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/GMM-using-Proc-Panel/m-p/312426#M2048</guid>
      <dc:creator>bobby_sas</dc:creator>
      <dc:date>2016-11-17T19:10:26Z</dc:date>
    </item>
  </channel>
</rss>

