<?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 Portfolio return by sorting two variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Portfolio-return-by-sorting-two-variables/m-p/806167#M317586</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need some help.&amp;nbsp;I want to compute the value-weighted average return for the applicable portfolio in 25 portfolios formed each fiscal year (variable FYEAR) by first sorting firms (GVKEY) into quintiles based on the beginning market value of equity (SIZEtm1), and then sorting each of these quintiles into quintiles based on the beginning book-to-market equity ratio (MTBtm1). The share price variable for each firm is PRCC_F.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Thierry&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 22:21:27 GMT</pubDate>
    <dc:creator>tritringuyen</dc:creator>
    <dc:date>2022-04-05T22:21:27Z</dc:date>
    <item>
      <title>Portfolio return by sorting two variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Portfolio-return-by-sorting-two-variables/m-p/806167#M317586</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need some help.&amp;nbsp;I want to compute the value-weighted average return for the applicable portfolio in 25 portfolios formed each fiscal year (variable FYEAR) by first sorting firms (GVKEY) into quintiles based on the beginning market value of equity (SIZEtm1), and then sorting each of these quintiles into quintiles based on the beginning book-to-market equity ratio (MTBtm1). The share price variable for each firm is PRCC_F.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Thierry&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 22:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Portfolio-return-by-sorting-two-variables/m-p/806167#M317586</guid>
      <dc:creator>tritringuyen</dc:creator>
      <dc:date>2022-04-05T22:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Portfolio return by sorting two variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Portfolio-return-by-sorting-two-variables/m-p/806182#M317595</link>
      <description>&lt;P&gt;Making quintiles will be the easy part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But before we get to that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are apparently forming 25 new portfolios each year.&amp;nbsp; Are you bringing forward holdings of the equivalent portfolio from the end of the previous year? (Is that what you mean by value weighted?).&amp;nbsp; &amp;nbsp;What is the timing of annual rebalancing?&amp;nbsp; By that I mean are you using price at the beginning of the fiscal year and book value from the end of the prior fiscal year, (i.e. 1 day earlier)?&amp;nbsp; Even though that book value won't be published until the next quarterly or annual filing 6 weeks or more later?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And don't forget, with Compustat data (whicih uses GVKEY as the company identifier), you'll have to account for stock splits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can start to answer these questions by providing a working data step with sample data.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 03:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Portfolio-return-by-sorting-two-variables/m-p/806182#M317595</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-04-06T03:22:54Z</dc:date>
    </item>
  </channel>
</rss>

