<?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 Proc Panel for dynamic panel models in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Panel-for-dynamic-panel-models/m-p/374278#M2490</link>
    <description>&lt;P&gt;I have customer data that has sales, promotion (&lt;FONT face="courier new,courier"&gt;promo&lt;/FONT&gt;) and competitor sales (&lt;FONT face="courier new,courier"&gt;comp&lt;/FONT&gt;) information by customer and month. I'm trying to estimate the impact of promotion on sales. I'm intending to use Proc Panel, since this is a panel data. I know from domain knowledge that there is carryover (auto regressive) effect of sales and promotion for atleast 2 months.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the first equation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10210i74CCB7CB4EB071E6/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="equation1.png" title="equation1.png" /&gt;&lt;/P&gt;
&lt;P&gt;To eliminate individual customer specific effects (&lt;FONT face="courier new,courier"&gt;ai&lt;/FONT&gt;), we take first difference and obtain the following equation 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10211iF47FA583ACB4EB9B/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="eq2.png" title="eq2.png" /&gt;&lt;/P&gt;
&lt;P&gt;The above equation can be written in panel data is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Proc panel data = cust_data;
	id cust time;
	instrument correlated =(comp sales_1);
	model Sales = promo promo_1 promo_2 comp comp_1 comp_2 sales_1 sales_2/gmm fdone nolevels;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are my questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Goal is to estimate &lt;FONT face="courier new,courier"&gt;comp &lt;/FONT&gt;and &lt;FONT face="courier new,courier"&gt;sales_1&lt;/FONT&gt; as instrument variable method ? How would I&amp;nbsp;state these two variables in the &lt;FONT face="courier new,courier"&gt;instrument&lt;/FONT&gt; statement ?&lt;/LI&gt;
&lt;LI&gt;Can I use both fdone and nolevels ?, since comp and sales_1 are correlated with differenced error term, is it correct to mention in instrument statement under &lt;FONT face="courier new,courier"&gt;correlated&lt;/FONT&gt; ?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Would &lt;FONT face="courier new,courier"&gt;fdone&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;nolevels&lt;/FONT&gt; in model take care of first difference estimation? or should I difference it ahead of time and supply the data in &lt;FONT face="courier new,courier"&gt;Proc Panel&lt;/FONT&gt; ?&lt;/LI&gt;
&lt;LI&gt;Is GMM1 or GMM2 appropriate? How to choose appropriate GMM?&lt;/LI&gt;
&lt;LI&gt;how to write the equation (1) using SAS proc panel?&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;Thank you for the help&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Jul 2017 22:17:16 GMT</pubDate>
    <dc:creator>Forecaster</dc:creator>
    <dc:date>2017-07-09T22:17:16Z</dc:date>
    <item>
      <title>Proc Panel for dynamic panel models</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Panel-for-dynamic-panel-models/m-p/374278#M2490</link>
      <description>&lt;P&gt;I have customer data that has sales, promotion (&lt;FONT face="courier new,courier"&gt;promo&lt;/FONT&gt;) and competitor sales (&lt;FONT face="courier new,courier"&gt;comp&lt;/FONT&gt;) information by customer and month. I'm trying to estimate the impact of promotion on sales. I'm intending to use Proc Panel, since this is a panel data. I know from domain knowledge that there is carryover (auto regressive) effect of sales and promotion for atleast 2 months.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the first equation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10210i74CCB7CB4EB071E6/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="equation1.png" title="equation1.png" /&gt;&lt;/P&gt;
&lt;P&gt;To eliminate individual customer specific effects (&lt;FONT face="courier new,courier"&gt;ai&lt;/FONT&gt;), we take first difference and obtain the following equation 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10211iF47FA583ACB4EB9B/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="eq2.png" title="eq2.png" /&gt;&lt;/P&gt;
&lt;P&gt;The above equation can be written in panel data is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Proc panel data = cust_data;
	id cust time;
	instrument correlated =(comp sales_1);
	model Sales = promo promo_1 promo_2 comp comp_1 comp_2 sales_1 sales_2/gmm fdone nolevels;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are my questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Goal is to estimate &lt;FONT face="courier new,courier"&gt;comp &lt;/FONT&gt;and &lt;FONT face="courier new,courier"&gt;sales_1&lt;/FONT&gt; as instrument variable method ? How would I&amp;nbsp;state these two variables in the &lt;FONT face="courier new,courier"&gt;instrument&lt;/FONT&gt; statement ?&lt;/LI&gt;
&lt;LI&gt;Can I use both fdone and nolevels ?, since comp and sales_1 are correlated with differenced error term, is it correct to mention in instrument statement under &lt;FONT face="courier new,courier"&gt;correlated&lt;/FONT&gt; ?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Would &lt;FONT face="courier new,courier"&gt;fdone&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;nolevels&lt;/FONT&gt; in model take care of first difference estimation? or should I difference it ahead of time and supply the data in &lt;FONT face="courier new,courier"&gt;Proc Panel&lt;/FONT&gt; ?&lt;/LI&gt;
&lt;LI&gt;Is GMM1 or GMM2 appropriate? How to choose appropriate GMM?&lt;/LI&gt;
&lt;LI&gt;how to write the equation (1) using SAS proc panel?&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;Thank you for the help&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2017 22:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Panel-for-dynamic-panel-models/m-p/374278#M2490</guid>
      <dc:creator>Forecaster</dc:creator>
      <dc:date>2017-07-09T22:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Panel for dynamic panel models</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Panel-for-dynamic-panel-models/m-p/374748#M2498</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;Below are my questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Goal is to estimate &lt;FONT face="courier new,courier"&gt;comp &lt;/FONT&gt;and &lt;FONT face="courier new,courier"&gt;sales_1&lt;/FONT&gt; as instrument variable method ? How would I&amp;nbsp;state these two variables in the &lt;FONT face="courier new,courier"&gt;instrument&lt;/FONT&gt; statement ?&lt;/LI&gt;
&lt;LI&gt;Can I use both fdone and nolevels ?, since comp and sales_1 are correlated with differenced error term, is it correct to mention in instrument statement under &lt;FONT face="courier new,courier"&gt;correlated&lt;/FONT&gt; ?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Would &lt;FONT face="courier new,courier"&gt;fdone&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;nolevels&lt;/FONT&gt; in model take care of first difference estimation? or should I difference it ahead of time and supply the data in &lt;FONT face="courier new,courier"&gt;Proc Panel&lt;/FONT&gt; ?&lt;/LI&gt;
&lt;LI&gt;Is GMM1 or GMM2 appropriate? How to choose appropriate GMM?&lt;/LI&gt;
&lt;LI&gt;how to write the equation (1) using SAS proc panel?&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To answer your questions in order:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. To get instruments for sales_1, just use the keyword DEPVAR. &amp;nbsp;To get instruments for the lagged values of comp you would include those in one of the other options for the INSTRUMENTS statement, for example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;instruments depvar correlated = (comp);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;2. You do not need the FDONE option. &amp;nbsp;Once you specify GMM you are getting first-differenced equations. &amp;nbsp;When combined with the NOLEVELS options, you are getting first-differenced equations exclusively.&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;3. The differencing is done for you once you specify GMM.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;4. GMM1 assumes no serial correlation in the differenced residuals. &amp;nbsp;If that's true then you gain some efficiency, &amp;nbsp;but it's usually safer to use GMM2. &amp;nbsp; GMM2 uses a data-based variance estimator for the differenced residuals.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;5. If you are wanting to do standard fixed effects estimation then use&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;Proc panel data = cust_data;
	id cust time;
	model Sales = promo promo_1 promo_2 comp comp_1 comp_2 sales_1 sales_2/ fixone;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;However, if you are wanting to do dynamic panel estimation using only the level equations then use&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;Proc panel data = cust_data;
	id cust time;
	instrument leveleq = (comp);
	model Sales = promo promo_1 promo_2 comp comp_1 comp_2 sales_1 sales_2/ gmm2 nodiffs;
run;&lt;/PRE&gt;
&lt;P&gt;Note that I changed CORRELATED to LEVELEQ in the INSTRUMENTS statement. &amp;nbsp;That's because correlated variables are not instruments in the level equations, since they are correlated with the individual effects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please email me at Bobby.Gutierrez@sas.com (or post here) if you have any further questions.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 00:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Panel-for-dynamic-panel-models/m-p/374748#M2498</guid>
      <dc:creator>bobby_sas</dc:creator>
      <dc:date>2017-07-11T00:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Panel for dynamic panel models</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Panel-for-dynamic-panel-models/m-p/396662#M2665</link>
      <description>&lt;P&gt;Hello, is GMM possible with SAS Studio? If yes, how to do OLS, Fixed Effect Model, and Random Effect Model? I have one dependent variable and many independent variables in my dataset and I am studying it over the period of 1999 - 2016.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2017 16:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Panel-for-dynamic-panel-models/m-p/396662#M2665</guid>
      <dc:creator>Krisha_A</dc:creator>
      <dc:date>2017-09-17T16:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Panel for dynamic panel models</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Panel-for-dynamic-panel-models/m-p/398492#M2673</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/165627"&gt;@Krisha_A&lt;/a&gt;&amp;nbsp;Since this question has a solution and is closed, please start a new message with your question. It will get more visibility that way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Shelley&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Panel-for-dynamic-panel-models/m-p/398492#M2673</guid>
      <dc:creator>ShelleySessoms</dc:creator>
      <dc:date>2017-09-25T12:01:53Z</dc:date>
    </item>
  </channel>
</rss>

