<?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: calculate rolling window beta in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/calculate-rolling-window-beta/m-p/433259#M4530</link>
    <description>&lt;P&gt;Do you have SAS/ETS? If so, look into PROC EXPAND. If you don’t, there are also some links here on how to do that with a data step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you search on here, this has been asked at least twice this year so far and there are answers on here as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/01/27/moving-average-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/01/27/moving-average-in-sas.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 20:17:18 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-01T20:17:18Z</dc:date>
    <item>
      <title>calculate rolling window beta</title>
      <link>https://communities.sas.com/t5/SAS-Studio/calculate-rolling-window-beta/m-p/433226#M4527</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am doing a research where I have to find the monthly beta of around 1000 stocks for 15 years. I have created a SAS table which contain daily historic data of all the stocks and also the market from 2002 to 2017. I would like to find the monthly beta with 30 data points without overlapping values. I would highly appreciate if somebody could help with the coding.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/calculate-rolling-window-beta/m-p/433226#M4527</guid>
      <dc:creator>renjithradhakri</dc:creator>
      <dc:date>2018-02-01T18:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: calculate rolling window beta</title>
      <link>https://communities.sas.com/t5/SAS-Studio/calculate-rolling-window-beta/m-p/433229#M4528</link>
      <description>&lt;P&gt;What is Beta? Please post some sample data that reflects your actual data and anything you've attempted as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/190428"&gt;@renjithradhakri&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am doing a research where I have to find the monthly beta of around 1000 stocks for 15 years. I have created a SAS table which contain daily historic data of all the stocks and also the market from 2002 to 2017. I would like to find the monthly beta with 30 data points without overlapping values. I would highly appreciate if somebody could help with the coding.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/calculate-rolling-window-beta/m-p/433229#M4528</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-01T18:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: calculate rolling window beta</title>
      <link>https://communities.sas.com/t5/SAS-Studio/calculate-rolling-window-beta/m-p/433237#M4529</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="beta.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18256i6D410153C0B21415/image-size/large?v=v2&amp;amp;px=999" role="button" title="beta.PNG" alt="beta.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;In excel beta is often calculated by either calculating the slope or by covariance.&lt;/P&gt;&lt;P&gt;Beta =covariance.p(B2:B32,A2:A32)/var.p(A2:A32) or&lt;/P&gt;&lt;P&gt;Beta =&lt;SPAN&gt;&amp;nbsp;SLOPE (A2: A32; B2:B32)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In this formula column A is the market and B is the stock to be calculated. In the screen shot MSCI_Return is the market.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 19:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/calculate-rolling-window-beta/m-p/433237#M4529</guid>
      <dc:creator>renjithradhakri</dc:creator>
      <dc:date>2018-02-01T19:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: calculate rolling window beta</title>
      <link>https://communities.sas.com/t5/SAS-Studio/calculate-rolling-window-beta/m-p/433259#M4530</link>
      <description>&lt;P&gt;Do you have SAS/ETS? If so, look into PROC EXPAND. If you don’t, there are also some links here on how to do that with a data step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you search on here, this has been asked at least twice this year so far and there are answers on here as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/01/27/moving-average-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/01/27/moving-average-in-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 20:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/calculate-rolling-window-beta/m-p/433259#M4530</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-01T20:17:18Z</dc:date>
    </item>
  </channel>
</rss>

