<?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: Adapting SAS code for a new data set. Rama French Industry portfolios in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adapting-SAS-code-for-a-new-data-set-Rama-French-Industry/m-p/541603#M149555</link>
    <description>Then you don't know how the input data set is formatted (and neither do we) so I don't think this approach will work for you. &lt;BR /&gt;&lt;BR /&gt;If you can provide the full logic with a small input data set and expected output someone may be able to help you with the code, but it will need to be a fully worked example to get it going. You can also search on LexJansen.com to see if there's other code examples there that may work for you. Good Luck.</description>
    <pubDate>Fri, 08 Mar 2019 20:55:54 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-03-08T20:55:54Z</dc:date>
    <item>
      <title>Adapting SAS code for a new data set. Rama French Industry portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adapting-SAS-code-for-a-new-data-set-Rama-French-Industry/m-p/541548#M149535</link>
      <description>&lt;P&gt;Thank you for reading my question. I am brand new! I only started learning SAS today and even worse I have a tight deadline.&amp;nbsp;&lt;/P&gt;&lt;DIV class="votecell post-layout--left"&gt;&lt;DIV class="js-voting-container grid fd-column ai-stretch gs4 fc-black-200"&gt;&lt;DIV class="js-favorite-count mt8"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="postcell post-layout--right"&gt;&lt;DIV class="post-text"&gt;&lt;P&gt;I have some code that replicates Kenneth French’s industry portfolios!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is I need this adapting so that it can be run with a different dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data in excel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATE: INDUSTRY: COMPANY NAME: RETURN: MARKET CAP&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Likewise to the above data I would like value weighted returns that are rebalanced every June.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this isn’t such as difficult task but the problem I am having is that I am very new to SAS so any advice on how I could do this would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the link to the SAS code that I believe does this already. By problem is that I have different data in the above format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wrds-www.wharton.upenn.edu/pages/support/research-wrds/research-guides/procedures-using-fama-and-french-48-industry-classification/" target="_blank" rel="noopener"&gt;https://wrds-www.wharton.upenn.edu/pages/support/research-wrds/research-guides/procedures-using-fama-and-french-48-industry-classification/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:29:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adapting-SAS-code-for-a-new-data-set-Rama-French-Industry/m-p/541548#M149535</guid>
      <dc:creator>Zarinasa2003</dc:creator>
      <dc:date>2019-03-08T19:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adapting SAS code for a new data set. Rama French Industry portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adapting-SAS-code-for-a-new-data-set-Rama-French-Industry/m-p/541594#M149550</link>
      <description>&lt;P&gt;Do you have access to WRDS? In this situation, the best method to get it working as fast as possible is to work with the demo and ensure you can get that working and understand it.&lt;/P&gt;
&lt;P&gt;Then, rather than modify the code, modify your input data set to match the input data set for the example by restructuring and renaming as necessary and then using that code.&amp;nbsp;&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/265785"&gt;@Zarinasa2003&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for reading my question. I am brand new! I only started learning SAS today and even worse I have a tight deadline.&amp;nbsp;&lt;/P&gt;
&lt;DIV class="votecell post-layout--left"&gt;
&lt;DIV class="js-voting-container grid fd-column ai-stretch gs4 fc-black-200"&gt;
&lt;DIV class="js-favorite-count mt8"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="postcell post-layout--right"&gt;
&lt;DIV class="post-text"&gt;
&lt;P&gt;I have some code that replicates Kenneth French’s industry portfolios!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My problem is I need this adapting so that it can be run with a different dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have data in excel:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;DATE: INDUSTRY: COMPANY NAME: RETURN: MARKET CAP&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likewise to the above data I would like value weighted returns that are rebalanced every June.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this isn’t such as difficult task but the problem I am having is that I am very new to SAS so any advice on how I could do this would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the link to the SAS code that I believe does this already. By problem is that I have different data in the above format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://wrds-www.wharton.upenn.edu/pages/support/research-wrds/research-guides/procedures-using-fama-and-french-48-industry-classification/" target="_blank" rel="noopener"&gt;https://wrds-www.wharton.upenn.edu/pages/support/research-wrds/research-guides/procedures-using-fama-and-french-48-industry-classification/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 20:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adapting-SAS-code-for-a-new-data-set-Rama-French-Industry/m-p/541594#M149550</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-03-08T20:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adapting SAS code for a new data set. Rama French Industry portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adapting-SAS-code-for-a-new-data-set-Rama-French-Industry/m-p/541597#M149552</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I see what you’re saying but I unforentuatley do not have WRDS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zarina&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 20:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adapting-SAS-code-for-a-new-data-set-Rama-French-Industry/m-p/541597#M149552</guid>
      <dc:creator>Zarinasa2003</dc:creator>
      <dc:date>2019-03-08T20:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adapting SAS code for a new data set. Rama French Industry portfolios</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adapting-SAS-code-for-a-new-data-set-Rama-French-Industry/m-p/541603#M149555</link>
      <description>Then you don't know how the input data set is formatted (and neither do we) so I don't think this approach will work for you. &lt;BR /&gt;&lt;BR /&gt;If you can provide the full logic with a small input data set and expected output someone may be able to help you with the code, but it will need to be a fully worked example to get it going. You can also search on LexJansen.com to see if there's other code examples there that may work for you. Good Luck.</description>
      <pubDate>Fri, 08 Mar 2019 20:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adapting-SAS-code-for-a-new-data-set-Rama-French-Industry/m-p/541603#M149555</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-03-08T20:55:54Z</dc:date>
    </item>
  </channel>
</rss>

