<?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: PROC Tabulate - % of a given categorical variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/433710#M107556</link>
    <description>Thank you! I'll keep that in mind next time. Thank you for letting me know.&lt;BR /&gt;</description>
    <pubDate>Fri, 02 Feb 2018 22:06:10 GMT</pubDate>
    <dc:creator>camfarrell25</dc:creator>
    <dc:date>2018-02-02T22:06:10Z</dc:date>
    <item>
      <title>PROC Tabulate - % of a given categorical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431812#M106851</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to create a table either in proc tabulate or proc report that would essentially give me the % of a given value occurring in the case of categorical variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance, if I have a categorical or dummy variable where an observation can either take value of 0 (false) or 1 (true) and I want to see the proportion of loans with dummy = 1 without knowing the proportion where dummy = 0 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 15:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431812#M106851</guid>
      <dc:creator>camfarrell25</dc:creator>
      <dc:date>2018-01-29T15:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate - % of a given categorical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431814#M106852</link>
      <description>&lt;P&gt;As long as the variable is numeric, just ask for the mean of the variable.&amp;nbsp; You might want to use a PERCENT8.1 format (for example) to print it.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 15:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431814#M106852</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-29T15:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate - % of a given categorical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431827#M106858</link>
      <description>&lt;P&gt;Thank you! In the case of a variable with multiple categories (Cat 1 - 4) and I wish to only obtain the % of loans in Category 2 for example, what would you recommend?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;CF&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 16:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431827#M106858</guid>
      <dc:creator>camfarrell25</dc:creator>
      <dc:date>2018-01-29T16:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate - % of a given categorical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431840#M106861</link>
      <description>&lt;P&gt;Create a new variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if category=2 then newvar=1;&lt;/P&gt;
&lt;P&gt;else newvar=0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then take the mean of the new variable.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 16:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431840#M106861</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-29T16:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate - % of a given categorical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431843#M106864</link>
      <description>&lt;P&gt;yes... of course&amp;nbsp; - my apologies!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 16:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431843#M106864</guid>
      <dc:creator>camfarrell25</dc:creator>
      <dc:date>2018-01-29T16:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate - % of a given categorical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431872#M106877</link>
      <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 17:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/431872#M106877</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-29T17:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate - % of a given categorical variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/433710#M107556</link>
      <description>Thank you! I'll keep that in mind next time. Thank you for letting me know.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Feb 2018 22:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Tabulate-of-a-given-categorical-variable/m-p/433710#M107556</guid>
      <dc:creator>camfarrell25</dc:creator>
      <dc:date>2018-02-02T22:06:10Z</dc:date>
    </item>
  </channel>
</rss>

