<?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 beta coefficients from the regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718489#M34742</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have panel data (company identification=GVKEY and Year=Fyear).&lt;/P&gt;&lt;P&gt;I want to measure&amp;nbsp; the coefficient of the market return when daily returns are regressed on market&lt;BR /&gt;returns. I use the following code but don't know how to get beta coefficients. I have to use the beta coefficients as dependent variable for the other regressions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc reg data=have noprint;&lt;BR /&gt;model ret=sprtrn;&lt;BR /&gt;output out=want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help me?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2021 07:07:13 GMT</pubDate>
    <dc:creator>abdulla</dc:creator>
    <dc:date>2021-02-11T07:07:13Z</dc:date>
    <item>
      <title>beta coefficients from the regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718489#M34742</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have panel data (company identification=GVKEY and Year=Fyear).&lt;/P&gt;&lt;P&gt;I want to measure&amp;nbsp; the coefficient of the market return when daily returns are regressed on market&lt;BR /&gt;returns. I use the following code but don't know how to get beta coefficients. I have to use the beta coefficients as dependent variable for the other regressions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc reg data=have noprint;&lt;BR /&gt;model ret=sprtrn;&lt;BR /&gt;output out=want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help me?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 07:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718489#M34742</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2021-02-11T07:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: beta coefficients from the regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718543#M34744</link>
      <description>&lt;P&gt;The beta coefficients are automatically output by PROC REG to the results, they are called "Parameter Estimates", as shown in this example:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_reg_gettingstarted01.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_reg_gettingstarted01.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 11:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718543#M34744</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-11T11:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: beta coefficients from the regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718613#M34755</link>
      <description>Proc reg data=have noprint   outest=want ;&lt;BR /&gt;&lt;BR /&gt;If it is panel data, better check PROC PANEL .</description>
      <pubDate>Thu, 11 Feb 2021 14:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718613#M34755</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-02-11T14:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: beta coefficients from the regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718699#M34770</link>
      <description>&lt;P&gt;Ksharp,&lt;BR /&gt;In my data, I have millions of data. These are daily return data as I stated in my original post. I use the following code&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc reg data = have outest=want noprint;&lt;BR /&gt;by gvkey fyear;&lt;BR /&gt;model ret = mktrtrn;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My confusion is that since I have date (daily), should I use fyear or date in by statement? I tried both and see that there is (zero) coefficient of beta when I use date but if I use fyear, I get different beta coefficient (expected results) in the output. When I use by gvkey fyear statement, the out put is yearly. I think the yearly coefficients come from daily return regression. If this is correct, this is what I want. I want to make sure that I am doing things correctly by using fyear not date in by statement as shown above in the syntax.&lt;BR /&gt;&lt;BR /&gt;Is there any difference in the out put if I use proc reg instead of proc panel. I am using the following code for proc panel&lt;BR /&gt;&lt;BR /&gt;proc panel data=have noprint outest=want1;&lt;BR /&gt;model ret = mktrtrn / rantwo;&lt;BR /&gt;id gvkey date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---- here I am using date because SAS is giving me error message if I use fyear. It says first obs is 2002 and 2nd is also 2002.So, they are not sorted properly though I sorted them by gvkey fyear. If I do by gvkey and date SAS says that not enough memory&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you please tell me whether I am doing things correctly by using proc reg? If I want to use proc panel what would be the correct code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;gvkey date fyear ret mktrtrn&lt;BR /&gt;1004 20020102 2002 0.05 0.0089051&lt;BR /&gt;1004 20020103 2002 0.176 0.003451&lt;BR /&gt;1004 20020104 2002 0.001 0.0235&lt;BR /&gt;. . . . .&lt;BR /&gt;. . . . .&lt;BR /&gt;. . . . .&lt;BR /&gt;1004 20021227 2002 0.0235 0.0035651&lt;BR /&gt;1004 20021230 2002 0.11276 0.1805&lt;BR /&gt;5250 20030102 2003 0.003451 0.00567451&lt;BR /&gt;5250 20030103 2003 0.0012451 0.176&lt;BR /&gt;5250 20030104 2003 0.0089051 0.001&lt;BR /&gt;. . . . .&lt;BR /&gt;. . . . .&lt;BR /&gt;. . . . .&lt;BR /&gt;5250 20031227 2003 0.0035651 0.11276&lt;BR /&gt;5250 20031230 2003 0.00567451 0.0012451&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 18:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718699#M34770</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2021-02-11T18:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: beta coefficients from the regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718852#M34787</link>
      <description>"My confusion is that since I have date (daily), should I use fyear or date in by statement?"&lt;BR /&gt;It is depended on what you need. Do you need a rolling windows for PROC REG ? one month or one year ?&lt;BR /&gt;If not , I think your code is right .</description>
      <pubDate>Fri, 12 Feb 2021 11:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-coefficients-from-the-regression/m-p/718852#M34787</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-02-12T11:32:19Z</dc:date>
    </item>
  </channel>
</rss>

