<?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: Allocating percents to missing values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Allocating-percents-to-missing-values/m-p/345790#M63531</link>
    <description>&lt;P&gt;If you don't want missing included then do not include MISSING on the class statement. If a value is counted then it is included in the ROWPCTN because that is what ROWPCTN does: report the percentange of the row n total count. So since you had an n=1 for because both variables are missing then it is calculated as part of the row percentage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a different denominator for your percentages then you may need to approach your problem differently such as using a different variable as a VAR variable and requesting an appropriate statistic for that variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Provide some example input data and what you want for output to get more specific suggestions.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2017 15:13:49 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-03-30T15:13:49Z</dc:date>
    <item>
      <title>Allocating percents to missing values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Allocating-percents-to-missing-values/m-p/345751#M63527</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a dataset I'm running PROC TABULATE on. All is going well, except I noticed that ROWPCTN is allocating some of the total percent to missing values. I don't want this. How do I get it to exclude the missing values when calculating percent?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC TABULATE DATA = BCanalysis;
CLASS ERstatus Race TumorStage InsuranceStatus / MISSING;
TABLES (ERstatus Race TumorStage) * (N ROWPCTN), InsuranceStatus;
TITLE ;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;RUN;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8040iCEE281D190A6BAC1/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="tabulate.jpg" title="tabulate.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Allocating-percents-to-missing-values/m-p/345751#M63527</guid>
      <dc:creator>lady8506</dc:creator>
      <dc:date>2017-03-30T14:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Allocating percents to missing values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Allocating-percents-to-missing-values/m-p/345766#M63528</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131693"&gt;@lady8506&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got a dataset I'm running PROC TABULATE on. All is going well, except I noticed that ROWPCTN is allocating some of the total percent to missing values. I don't want this. How do I get it to exclude the missing values when calculating percent?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please describe exactly which row in the results you show is "allocating" of of the total percent to missing values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are summing the shown percents and seeing that the total does not equal 100% for a row it is because of rounding for displayed values.&lt;/P&gt;
&lt;P&gt;This code will allow you to see more digits if this is your concern:&lt;/P&gt;
&lt;PRE&gt;PROC TABULATE DATA = BCanalysis;
CLASS ERstatus Race TumorStage InsuranceStatus / MISSING;
TABLES (ERstatus Race TumorStage) * (N ROWPCTN*f=F9.5), InsuranceStatus;
run ;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Allocating-percents-to-missing-values/m-p/345766#M63528</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-30T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Allocating percents to missing values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Allocating-percents-to-missing-values/m-p/345784#M63530</link>
      <description>&lt;P&gt;If you look at the pretty picture I included, it will show you that everwhere there is a record with a missing value, part of the total row percent and N was allocated to it. For example, &lt;EM&gt;looking at the picture&lt;/EM&gt;: If ERstatus = . and InsuranceStatus = . a part of the total percent was allocated to the missing value.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Allocating-percents-to-missing-values/m-p/345784#M63530</guid>
      <dc:creator>lady8506</dc:creator>
      <dc:date>2017-03-30T14:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Allocating percents to missing values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Allocating-percents-to-missing-values/m-p/345790#M63531</link>
      <description>&lt;P&gt;If you don't want missing included then do not include MISSING on the class statement. If a value is counted then it is included in the ROWPCTN because that is what ROWPCTN does: report the percentange of the row n total count. So since you had an n=1 for because both variables are missing then it is calculated as part of the row percentage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a different denominator for your percentages then you may need to approach your problem differently such as using a different variable as a VAR variable and requesting an appropriate statistic for that variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Provide some example input data and what you want for output to get more specific suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Allocating-percents-to-missing-values/m-p/345790#M63531</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-30T15:13:49Z</dc:date>
    </item>
  </channel>
</rss>

