<?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: Regression in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140755#M870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reply. Yes, the dependent variable will me missing many places because the dependent variable is cumulative abnormal return and independent variables are firm level variables such as book-to-market, market value, return on assets, dividend yield. There are observations for each firm each year of the independent variables but dependent variable, car5, does not have the observations for each firm each year.&lt;/P&gt;&lt;P&gt;Yes, the syntax will be car5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the log file, it tells that there is one cross cross section or time series.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to run the regression with firm (companyISIN) and year fixed effects. So what will be the codes? should I continue to use proc panel? or should I use proc glm or proc mixed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need further information. Your help is highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 19:16:06 GMT</pubDate>
    <dc:creator>AbuChowdhury</dc:creator>
    <dc:date>2014-06-13T19:16:06Z</dc:date>
    <item>
      <title>Regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140753#M868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have the following variables in my dataset: companyISIN, year, car5, bm, mv, roa, dy. &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; I also need to do the log of mv variable and divide roa by ression100. So the dependent variable will be car5 and independent variables will be bm, log of mv, roa/100, and dy. &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;In the regression, there will be two fixed effects: firm (i.e. companyISIN) and year.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;How can I run the fixed effects regression using proc panel. proc glm, or proc mixed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I run the following codes but it does not work:&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;proc panel data = x;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;model car = mv ta roa ni dy / fixone;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;id CompanyISIN year;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I have included the data file so you can have a look.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 16:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140753#M868</guid>
      <dc:creator>AbuChowdhury</dc:creator>
      <dc:date>2014-06-12T16:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140754#M869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what does the log file say?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see a bunch of issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, your dependent variable is almost always missing. That dep variable name is car5 but you call it car in the syntax. Other than that, it looks ok as long as the data are sorted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do the other variables mean? Happy to help if you provide some additional info. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks-Ken &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 17:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140754#M869</guid>
      <dc:creator>ets_kps</dc:creator>
      <dc:date>2014-06-13T17:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140755#M870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reply. Yes, the dependent variable will me missing many places because the dependent variable is cumulative abnormal return and independent variables are firm level variables such as book-to-market, market value, return on assets, dividend yield. There are observations for each firm each year of the independent variables but dependent variable, car5, does not have the observations for each firm each year.&lt;/P&gt;&lt;P&gt;Yes, the syntax will be car5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the log file, it tells that there is one cross cross section or time series.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to run the regression with firm (companyISIN) and year fixed effects. So what will be the codes? should I continue to use proc panel? or should I use proc glm or proc mixed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need further information. Your help is highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 19:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140755#M870</guid>
      <dc:creator>AbuChowdhury</dc:creator>
      <dc:date>2014-06-13T19:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140756#M871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use any PROC you wish, this is a conceptual problem and not a tool problem. For simplicity, you might want to use PROC MIXED or GLM though. See this note &lt;A href="http://support.sas.com/documentation/cdl/en/etsug/66840/HTML/default/viewer.htm#etsug_panel_details58.htm" title="http://support.sas.com/documentation/cdl/en/etsug/66840/HTML/default/viewer.htm#etsug_panel_details58.htm"&gt;SAS/ETS(R) 13.1 User's Guide&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use a Fixed Effects (FE) strategy to control for time and firm level heterogeneity, you are going to have some issues with such sparse data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the strategy I would use,&lt;/P&gt;&lt;P&gt;proc qlim data=tmp1.x ; class year&amp;nbsp;&amp;nbsp; ;model car5 = bm mv roa dy year / noint;nloptions maxiter=0; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is effectively creating a Dummy for each time and for each cross section.&amp;nbsp; Given that you only have one observation in some cross-sections you need to omit an intercept to get anything that makes sense.&amp;nbsp; Personally I think you should probably consider a Random Effects strategy for estimation because of your data problems. (PROC MIXED)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 18:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140756#M871</guid>
      <dc:creator>ets_kps</dc:creator>
      <dc:date>2014-06-16T18:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140757#M872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc qlim is running and showing the results but the logfile also shows the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: The Hessian matrix is singular.&lt;/P&gt;&lt;P&gt;ERROR: QUANEW Optimization cannot be completed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 13:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140757#M872</guid>
      <dc:creator>AbuChowdhury</dc:creator>
      <dc:date>2014-06-17T13:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140758#M873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;The error message bascially tells you that the nonlinear optimization algorithm failed to execute.&lt;/P&gt;&lt;P&gt;You may want to try a different optimization technique: &lt;A href="http://support.sas.com/documentation/cdl/en/etsug/66840/HTML/default/viewer.htm#etsug_nlomet_sect005.htm"&gt;http://support.sas.com/documentation/cdl/en/etsug/66840/HTML/default/viewer.htm#etsug_nlomet_sect005.htm&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>Tue, 17 Jun 2014 14:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140758#M873</guid>
      <dc:creator>udo_sas</dc:creator>
      <dc:date>2014-06-17T14:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140759#M874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just remove maxiter=0 from syntax .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 14:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140759#M874</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-06-17T14:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140760#M875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included maxiter=0 because I wanted the estimates to be OLS and that is what the optimizer uses as initial values.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would have sent you to PROC REG but I couldn't find how to easily do class variables.&amp;nbsp; Feel free to use any tool that uses OLS.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 17:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140760#M875</guid>
      <dc:creator>ets_kps</dc:creator>
      <dc:date>2014-06-17T17:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regression</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140761#M876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Based on error message it seems OLS estimates can not be calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naeem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 17:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Regression/m-p/140761#M876</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-06-17T17:31:48Z</dc:date>
    </item>
  </channel>
</rss>

