<?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: Forming Portfolio of Connected firms in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399066#M278463</link>
    <description>You need the connections between firms stored in a file, without that information solving the problem ist hardly possible. Or does any logic exist to identify the connection?</description>
    <pubDate>Wed, 27 Sep 2017 08:13:34 GMT</pubDate>
    <dc:creator>error_prone</dc:creator>
    <dc:date>2017-09-27T08:13:34Z</dc:date>
    <item>
      <title>Forming Portfolio of Connected firms</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399025#M278461</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have daily stock price &amp;nbsp;data for 1000 firms.&amp;nbsp;I need to form portfolios of firms that are connected to each other. For instance in my sample data attached, firm with Permno number 10001 is connected to firms with permno number 1002, 1009,10012,10019. I want to form a portfolio consisting of these four firms (&lt;SPAN&gt;1002, 1009,10012,10019) that are connected to firm 10001. How do i resolve this problem. Thanks in advance for the assitance. rgds ejaa.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 05:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399025#M278461</guid>
      <dc:creator>EJAA</dc:creator>
      <dc:date>2017-09-27T05:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolio of Connected firms</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399032#M278462</link>
      <description>&lt;P&gt;How do you know the connection, do you have them in another file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise you could create a group data set which contains group and firms and then join that data set with your details.&lt;/P&gt;
&lt;P&gt;After that it is easy to summarize or whatever you want &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data groups;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; length group firm $32;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;input group firm;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;datalines;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;group1 10001&lt;/P&gt;
&lt;P&gt;&amp;nbsp;group1 10002&lt;/P&gt;
&lt;P&gt;group1 10003&lt;/P&gt;
&lt;P&gt;group2 11001&lt;/P&gt;
&lt;P&gt;group2 11002&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;create jointV as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; select * from groups as a&lt;/P&gt;
&lt;P&gt;&amp;nbsp; left join details as b&lt;/P&gt;
&lt;P&gt;&amp;nbsp;on a.firm = b.permno&lt;/P&gt;
&lt;P&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 05:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399032#M278462</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2017-09-27T05:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolio of Connected firms</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399066#M278463</link>
      <description>You need the connections between firms stored in a file, without that information solving the problem ist hardly possible. Or does any logic exist to identify the connection?</description>
      <pubDate>Wed, 27 Sep 2017 08:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399066#M278463</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2017-09-27T08:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolio of Connected firms</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399375#M278464</link>
      <description>&lt;P&gt;Hi error_prone&lt;/P&gt;&lt;P&gt;I have the connections among firms established using a set of rules hence me been able to indicate that firm 10001 in the attached sample &amp;nbsp;is connected to four firms in the data. So for each firm, I have on all other firms connected to it and want to create a portfolio for the connected firms using daily prices which is proving difficult. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 02:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399375#M278464</guid>
      <dc:creator>EJAA</dc:creator>
      <dc:date>2017-09-28T02:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolio of Connected firms</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399378#M278465</link>
      <description>&lt;P&gt;Hi Fredrike&lt;/P&gt;&lt;P&gt;With reference to the connections, yes i do have them on a different sheet. Thus each firm and the firms connected to it. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 02:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399378#M278465</guid>
      <dc:creator>EJAA</dc:creator>
      <dc:date>2017-09-28T02:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolio of Connected firms</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399412#M278466</link>
      <description>&lt;P&gt;Have you tried my code example?&lt;/P&gt;
&lt;P&gt;Can you provide some of your tries, and maybe an example of what you want to accomplish &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 06:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/399412#M278466</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2017-09-28T06:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Forming Portfolio of Connected firms</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/404630#M278467</link>
      <description>&lt;P&gt;I have the connections stored in another file. I want to read from the two data sets to create the groups/connected firms. any directions for me. thanks in advance.rgds&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 23:10:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forming-Portfolio-of-Connected-firms/m-p/404630#M278467</guid>
      <dc:creator>EJAA</dc:creator>
      <dc:date>2017-10-16T23:10:23Z</dc:date>
    </item>
  </channel>
</rss>

