<?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: Please, help me with GMM estimation on asset pricing model in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Please-help-me-with-GMM-estimation-on-asset-pricing-model/m-p/149579#M943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;Not sure if this is useful, but you may want to check out: &lt;A href="http://home.business.utah.edu/finmll/fin787/programs/gmmassetpricingtests.sas" title="http://home.business.utah.edu/finmll/fin787/programs/gmmassetpricingtests.sas"&gt;http://home.business.utah.edu/finmll/fin787/programs/gmmassetpricingtests.sas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 22:08:54 GMT</pubDate>
    <dc:creator>udo_sas</dc:creator>
    <dc:date>2013-11-22T22:08:54Z</dc:date>
    <item>
      <title>Please, help me with GMM estimation on asset pricing model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Please-help-me-with-GMM-estimation-on-asset-pricing-model/m-p/149578#M942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hello everyone:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I am new to sas. I used sas to form my own FF portfolios for the Chinese stock markets.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;So i am ok with sas when it's about data management but can't do GMM estimation properly and &lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; line-height: 1.5em;"&gt;i had a hard time figuring a way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Basically, I want to estimate an asset pricing model using GMM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;But i don't know how to properly specify the moment conditions using Proc model.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;It is about implementing a linear factor asset pricing model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have nine Fama-French portfolios and three risk factors.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I need to run a time-series regressions to get the coefficient estimates on three risk factors for each of the nine portfolio.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;and the residuals should be orthogonal to the risk factors. This is the first and second moment conditions as in the screenshot of the book.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Then i need to run a cross-section regression. that is to regress coefficient estimates from the above regression (which becomes the right hand variables) on the&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;average excess return of the portfolios. this is the third moment conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The reason for using GMM is that the covariance matrix is supposed to take care the generated regressor problem and gives me robust inference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;But i really don't know how to do it using Proc model. I did it in all the way imaginable, but the results i get are nonsensical, so they are obviously wrong.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;please, see the attached sas codes, they are obviously wrong. But i am able to specify the first nine time series regression and don't know how to proceed further.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I think what i need to do is to saved the estimated coefficients and the VCV of the parameter estimates and somehow tell sas to use that information in &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;estimating the third moment conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I attaches the&amp;nbsp; the screenshot from cochrane's book where he specifies the moment conditions and what the spreadsheet look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Any help and suggestion is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thank you very much.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11846iBEAEA9A3FE62CF7D/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2013-11-19 at 7.46.29 PM.png" title="Screen Shot 2013-11-19 at 7.46.29 PM.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11847i4DDA95A116116D06/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2013-11-19 at 7.46.57 PM.png" title="Screen Shot 2013-11-19 at 7.46.57 PM.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 15:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Please-help-me-with-GMM-estimation-on-asset-pricing-model/m-p/149578#M942</guid>
      <dc:creator>Renjian</dc:creator>
      <dc:date>2013-11-20T15:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Please, help me with GMM estimation on asset pricing model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Please-help-me-with-GMM-estimation-on-asset-pricing-model/m-p/149579#M943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;Not sure if this is useful, but you may want to check out: &lt;A href="http://home.business.utah.edu/finmll/fin787/programs/gmmassetpricingtests.sas" title="http://home.business.utah.edu/finmll/fin787/programs/gmmassetpricingtests.sas"&gt;http://home.business.utah.edu/finmll/fin787/programs/gmmassetpricingtests.sas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 22:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Please-help-me-with-GMM-estimation-on-asset-pricing-model/m-p/149579#M943</guid>
      <dc:creator>udo_sas</dc:creator>
      <dc:date>2013-11-22T22:08:54Z</dc:date>
    </item>
  </channel>
</rss>

