<?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: Creating a table: which function to use? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36106#M9067</link>
    <description>It would be more like convert your horizontal SAS file to vertical, using a set of arrays to control an outer and inner loop, creating an output observation for each unique value combination based on some key variable list.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
ON DATA TRANSFER - topic "HORIZONTAL TO VERTICAL DATA FORMAT":&lt;BR /&gt;
Aileen L. Yam, Clinical Information Analysis, Inc., Plainsboro, NJ&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi23/Advtutor/p46.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi23/Advtutor/p46.pdf&lt;/A&gt;</description>
    <pubDate>Wed, 27 May 2009 00:21:12 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-05-27T00:21:12Z</dc:date>
    <item>
      <title>Creating a table: which function to use?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36102#M9063</link>
      <description>Hello!&lt;BR /&gt;
&lt;BR /&gt;
I have 45 variables called TEST (TEST1-TEST45) and 6 variables called RACE_CAT (RACE_CAT1-RACE_CAT6). There are approximately 900 observations in my dataset.&lt;BR /&gt;
I need to create a table showing the counts of each and every test per race category; and I also need to calculate the rates of each test per 10,000 people/per race category.&lt;BR /&gt;
&lt;BR /&gt;
Being a novice, I am having a hard time deciding between proc sql or using a multidimensional array. Do I need to calculate the totals for each variable beforehand to calculate the rates, or is there a way to do this in the process of creating the table??&lt;BR /&gt;
&lt;BR /&gt;
I have tried to simplify my data as best as I can; all are coded as "1" if "yes" for each test or race category.&lt;BR /&gt;
&lt;BR /&gt;
Can anyone help me?? &lt;BR /&gt;
Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 25 May 2009 02:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36102#M9063</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-25T02:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table: which function to use?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36103#M9064</link>
      <description>I would try to transpose the data, so that you'll have one test per row.&lt;BR /&gt;
Don't exactly understand how you want to report on race, maybe you could attach some sample input and desired output to describe the problem?&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Tue, 26 May 2009 05:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36103#M9064</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-05-26T05:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table: which function to use?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36104#M9065</link>
      <description>Hi Linus, thanks for the response. The data is already transposed with one record per subject (every subject has 45 tests and 6 race category variables). I ended up just making 6 separate datasets per race category and importing it into Excel to do the calculations, it was just easier. But in the future, I would like to be able to create a table in SAS using some sort of Array or Proc Sql function....&lt;BR /&gt;
&lt;BR /&gt;
Anyhow, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 26 May 2009 15:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36104#M9065</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-26T15:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table: which function to use?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36105#M9066</link>
      <description>Unsure I fully understand you goal, you might need to provide more details.&lt;BR /&gt;
&lt;BR /&gt;
Linus' suggestion is good: in general, transposing the dataset (for example to have one record per figure), makes it easy to summarise it in funny ways.&lt;BR /&gt;
[pre]&lt;BR /&gt;
TEST#   CAT#  RESULT&lt;BR /&gt;
A       x       3&lt;BR /&gt;
B       x       6&lt;BR /&gt;
....&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 26 May 2009 22:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36105#M9066</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-05-26T22:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table: which function to use?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36106#M9067</link>
      <description>It would be more like convert your horizontal SAS file to vertical, using a set of arrays to control an outer and inner loop, creating an output observation for each unique value combination based on some key variable list.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
ON DATA TRANSFER - topic "HORIZONTAL TO VERTICAL DATA FORMAT":&lt;BR /&gt;
Aileen L. Yam, Clinical Information Analysis, Inc., Plainsboro, NJ&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi23/Advtutor/p46.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi23/Advtutor/p46.pdf&lt;/A&gt;</description>
      <pubDate>Wed, 27 May 2009 00:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-table-which-function-to-use/m-p/36106#M9067</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-27T00:21:12Z</dc:date>
    </item>
  </channel>
</rss>

