<?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: Social network data in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460713#M29704</link>
    <description>&lt;P&gt;Assuming I understood what you mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input point $ person;
cards;
A 1
A 2
B 1
B 2
B 3
C 2
C 3
;
run;
proc sql;
select a.point,a.person as person1,b.person as person2
 from have as a,have as b
  where a.point=b.point and a.person ne b.person
   order by 2,1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 May 2018 14:39:23 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-05-08T14:39:23Z</dc:date>
    <item>
      <title>Social network data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460696#M29699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to restructure my data set in order to use it as social network data. In the attached file there is the input data and how I want it to be structured (Solution 1 or Solution 2).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nw.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20411i1783F41F06B84846/image-size/large?v=v2&amp;amp;px=999" role="button" title="nw.png" alt="nw.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 14:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460696#M29699</guid>
      <dc:creator>juliehn</dc:creator>
      <dc:date>2018-05-08T14:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Social network data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460710#M29702</link>
      <description>&lt;P&gt;1) no attached file&lt;/P&gt;
&lt;P&gt;2) best to provide existing data in the form of a data step so we have no need to question variable names or types&lt;/P&gt;
&lt;P&gt;3) I think you need to describe what is going on in "solution 1". Why is there a 2 A 1 but no 3 C 2 for instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is solution 2 a report or a data set? You cannot have a variable named 1, 2 or 3 in a SAS data set so you would have to show what variables you actually want.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 14:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460710#M29702</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-08T14:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Social network data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460713#M29704</link>
      <description>&lt;P&gt;Assuming I understood what you mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input point $ person;
cards;
A 1
A 2
B 1
B 2
B 3
C 2
C 3
;
run;
proc sql;
select a.point,a.person as person1,b.person as person2
 from have as a,have as b
  where a.point=b.point and a.person ne b.person
   order by 2,1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2018 14:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460713#M29704</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-05-08T14:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Social network data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460734#M29706</link>
      <description>&lt;P&gt;I think you'll find either of your preferred structures will turn out to be impractical in practice, as the number of persons and meeting points expands. Here's a solution I did for someone else, which groups the nodes into networks. From there, you should be able to restructure it as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data TestData;
	input From To;
	cards;
1 15
1 16
15 16
2 16
2 17
16 17
3 4
4 5
5 6
6 18
7 18
8 19
9 19
10 20
10 19
20 19
11 8
12 21
12 20
12 13
21 20
21 13
20 13
13 22
13 23
22 23
14 23
14 24
23 24
9 25
run;

proc optnet data_links=TestData out_nodes=Networks;
	concomp;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2018 15:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460734#M29706</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-05-08T15:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Social network data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460747#M29707</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/208904"&gt;@juliehn&lt;/a&gt;&amp;nbsp;- I removed the attachment (XLS) file and replaced with a picture inline -- thought that would be more useful for experts to respond.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 16:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460747#M29707</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-05-08T16:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Social network data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460994#M29723</link>
      <description>&lt;P&gt;It worked and data is organised just like I wanted.Thanks a mil!&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Social-network-data/m-p/460994#M29723</guid>
      <dc:creator>juliehn</dc:creator>
      <dc:date>2018-05-09T13:12:23Z</dc:date>
    </item>
  </channel>
</rss>

