<?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 How to make a group-id number in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-group-id-number/m-p/53644#M14824</link>
    <description>Hello&lt;BR /&gt;
&lt;BR /&gt;
I am looking for help to be able to create a group-id number&lt;BR /&gt;
I have the following information for the persons in my dataset:&lt;BR /&gt;
&lt;BR /&gt;
- Person identification number&lt;BR /&gt;
- Father identification number (i.e. ID-number for the father of each of the persons in my dataset)&lt;BR /&gt;
- Mother Identification number (i.e. (i.e. ID-number for the mother of each of the persons in my dataset)&lt;BR /&gt;
&lt;BR /&gt;
I would like to make a group-id for each sibling-pair in my dataset (for both half and full siblings). Some of the persons in my dataset will have more than one sibling, but I wish all of the siblings to be included as pairs. &lt;BR /&gt;
&lt;BR /&gt;
Does anyone know how to do this? &lt;BR /&gt;
&lt;BR /&gt;
Thank you!</description>
    <pubDate>Wed, 21 Jul 2010 12:56:48 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-07-21T12:56:48Z</dc:date>
    <item>
      <title>How to make a group-id number</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-group-id-number/m-p/53644#M14824</link>
      <description>Hello&lt;BR /&gt;
&lt;BR /&gt;
I am looking for help to be able to create a group-id number&lt;BR /&gt;
I have the following information for the persons in my dataset:&lt;BR /&gt;
&lt;BR /&gt;
- Person identification number&lt;BR /&gt;
- Father identification number (i.e. ID-number for the father of each of the persons in my dataset)&lt;BR /&gt;
- Mother Identification number (i.e. (i.e. ID-number for the mother of each of the persons in my dataset)&lt;BR /&gt;
&lt;BR /&gt;
I would like to make a group-id for each sibling-pair in my dataset (for both half and full siblings). Some of the persons in my dataset will have more than one sibling, but I wish all of the siblings to be included as pairs. &lt;BR /&gt;
&lt;BR /&gt;
Does anyone know how to do this? &lt;BR /&gt;
&lt;BR /&gt;
Thank you!</description>
      <pubDate>Wed, 21 Jul 2010 12:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-group-id-number/m-p/53644#M14824</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-21T12:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a group-id number</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-group-id-number/m-p/53645#M14825</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Does a sibling have both parents in common or is one parent (i.e. same father) enough?&lt;BR /&gt;
&lt;BR /&gt;
If it's both parents then creating a group id is easy: Just sort by father_id and mother_id and generate a group_id for all records sharing the same mother_id (using first and last and a retained variable group_id).&lt;BR /&gt;
&lt;BR /&gt;
If "half" siblings are also siblings then the story becomes more complicated and a simple group_id is no more possible (as A can be sibling of B, and B sibling of C, but A and C are not related).&lt;BR /&gt;
&lt;BR /&gt;
With "half" siblings you'll end up with a network and one would have to create an association table. The way you would create a datamart (having all information in one table) depends then on what you want to do with the data ("multiple records" for one child or a "relationship array").&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Wed, 21 Jul 2010 13:23:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-group-id-number/m-p/53645#M14825</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-07-21T13:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a group-id number</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-group-id-number/m-p/53646#M14826</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your response! Very helpful to know what the next step is.&lt;BR /&gt;
I will start wokring on the association table.</description>
      <pubDate>Fri, 23 Jul 2010 09:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-group-id-number/m-p/53646#M14826</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-23T09:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a group-id number</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-group-id-number/m-p/53647#M14827</link>
      <description>Hi Grethe&lt;BR /&gt;
&lt;BR /&gt;
The association table is for storing and maintaining the data. For reporting purposes you might be better off to create a data mart shaped to the kind of reports you intend to create.&lt;BR /&gt;
&lt;BR /&gt;
If - and only if - you don't have too many data then the reporting datamart(s) could also be implemented as views which query the underlying tables using an association table.&lt;BR /&gt;
&lt;BR /&gt;
The data model with the association table could look as follows:&lt;BR /&gt;
&lt;BR /&gt;
PERSON{PersonID,...variables containing attributs of this person}&lt;BR /&gt;
RELATIONSHIP{PersonID,RelatedPersonID,RelationshipID,...additional attributes}&lt;BR /&gt;
RELATIONSHIP_TYPE{RelationshipID,RelationshipDescription}&lt;BR /&gt;
&lt;BR /&gt;
PERSON has a 1 to zero or many relation to RELATIONSHIP&lt;BR /&gt;
&lt;BR /&gt;
RELATIONSHIP_TYPE is only a lookup table for RELATIONSHIP with a few records and values for RelationshipDescription like "Father", "Mother", "Sibling", "Aunt".... and so on.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick

Message was edited by: Patrick</description>
      <pubDate>Fri, 23 Jul 2010 10:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-group-id-number/m-p/53647#M14827</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-07-23T10:00:01Z</dc:date>
    </item>
  </channel>
</rss>

