<?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: Am I going crazy? Percentages in PROC TABULATE are wrong? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362111#M274754</link>
    <description>&lt;P&gt;Change the order of operations, divide by 12 after you calculate your final values.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 27 May 2017 01:07:09 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-05-27T01:07:09Z</dc:date>
    <item>
      <title>Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361606#M274743</link>
      <description>&lt;DIV&gt;&lt;FONT face="Courier New" color="navy"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;tabulate&lt;/STRONG&gt; &lt;FONT color="blue"&gt;data&lt;/FONT&gt;&lt;FONT color="black"&gt;=combined;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="blue"&gt;class&lt;FONT color="black"&gt; syear;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="blue"&gt;weight&lt;FONT color="black"&gt; annualwt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="blue"&gt;where&lt;FONT color="black"&gt;&amp;nbsp; employed=&lt;/FONT&gt;&lt;FONT color="teal"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="blue"&gt;table&lt;FONT color="black"&gt; syear*annualwt*(sumwgt pctsum);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="navy"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="navy"&gt;&lt;FONT color="black"&gt;Results in these incorrect percentages (also occurs for rowpctn and all other options)!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="navy"&gt;&lt;IMG src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=1a0826b1b6&amp;amp;view=fimg&amp;amp;th=15c3fe5ae6ca82d5&amp;amp;attid=0.1&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ_PALA4CF1wA7WNPZ1mAkjq-S46XfJuZpWtEH-Oee3EKxuCHZgQKgpmbIlBzQkrMVDUxQQ9YxxepSHdbeaiqsvdUQDnyloe6l81g6TELw3PtOC5Hw_Ue_4vVYg&amp;amp;sz=s0-l75-ft&amp;amp;ats=1495720684274&amp;amp;rm=15c3fe5ae6ca82d5&amp;amp;zw&amp;amp;atsh=1" border="0" /&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 May 2017 14:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361606#M274743</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-05-25T14:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361609#M274744</link>
      <description>&lt;P&gt;So without your data or any sample data, results, output or expected output I'm going to say no, the results are correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They're not what you want, but we have no idea of what you want....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: I don't feel qualified to answer the first part of your question but I could guess...&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 14:03:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361609#M274744</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-25T14:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361631#M274745</link>
      <description>&lt;P&gt;You will need to show some input data and desired result.&lt;/P&gt;
&lt;P&gt;I suspect that you are not understanding which variable count or sum is being used for the denominator and numerator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Putting the weight variable in the table statment is not really how weight is intended to work&lt;/P&gt;
&lt;PRE&gt;data junk;
    input syear weight ;
datalines;
2000  15.3
2001  12.9
2003  10
;
run;

proc tabulate data=junk;
   class syear;
   weight weight;
   table syear*weight, 
         sum pctsum
         /style=[Pretext='when weight is in table']
   ;
run;&lt;/PRE&gt;
&lt;P&gt;results&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;&lt;A name="IDX4" target="_blank"&gt;&lt;/A&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;Count when weight is in table
&lt;TABLE class="Table" cellspacing="0" cellpadding="3" summary="Procedure Tabulate: Table 1"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c m Header" colspan="2" scope="colgroup"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="c m Header" scope="col"&gt;Sum&lt;/TH&gt;
&lt;TH class="c m Header" scope="col"&gt;PctSum&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="col"&gt;syear&lt;/TH&gt;
&lt;TH class="l m rowheader" scope="col"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TD class="r b Data" rowspan="2"&gt;234.09&lt;/TD&gt;
&lt;TD class="r b Data" rowspan="2"&gt;46.77&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="col"&gt;2000&lt;/TH&gt;
&lt;TH class="l m rowheader" scope="col"&gt;weight&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="col"&gt;2001&lt;/TH&gt;
&lt;TH class="l m rowheader" scope="col"&gt;weight&lt;/TH&gt;
&lt;TD class="r b Data"&gt;166.41&lt;/TD&gt;
&lt;TD class="r b Data"&gt;33.25&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="col"&gt;2003&lt;/TH&gt;
&lt;TH class="l m rowheader" scope="col"&gt;weight&lt;/TH&gt;
&lt;TD class="r b Data"&gt;100.00&lt;/TD&gt;
&lt;TD class="r b Data"&gt;19.98&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;Which with some insight 234.09 is 15.3*15.3 - weight in effect counts each value WEIGHT times for the sum.&lt;/DIV&gt;
&lt;DIV class="branch"&gt;Moral of the story: requesting statistics from weight other than N are likely not to be what you think they are.&lt;/DIV&gt;
&lt;DIV class="branch"&gt;Tabulate is going to expect another variable to SUM, which should be on a VAR statement.&lt;/DIV&gt;
&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="branch"&gt;I have no idea what you are actually attempting so example data and desired output for that example is really needed.&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 May 2017 14:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361631#M274745</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-25T14:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361675#M274746</link>
      <description>&lt;P&gt;After trying a few options, I have to use SUMWGT instead of SUM (otherwise the results are completely off). The PCTSUM seems to use the 'completely off' numbers from SUM. So it's almost like&amp;nbsp;I need a PCTSUMWGT (which doesn't work--I tried!).&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 16:20:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361675#M274746</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-05-25T16:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361706#M274747</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Example data;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Desired results for that example.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I'll reiterate you don't actually a variable you are summing properly as Tabulate expects. So of course SUM is "wrong" and of course Pctsum, rowpctsum or colpctsum use such a sum. IF you have an actual analysis VAR variable you &lt;STRONG&gt;may&lt;/STRONG&gt; be able to get the percentage you need using the pctsum&amp;lt;varname&amp;gt; which uses the sums of the stated variable. But it really should be a VAR variable.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 17:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361706#M274747</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-25T17:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361721#M274748</link>
      <description>&lt;P&gt;Sorry I'm completely lost. If i&amp;nbsp;delete the WEIGHT line, and instead put VAR ANNUALWT it actually works 100%. Is this what you're recommending--just get rid of the&amp;nbsp;WEIGHT line altogether??&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 17:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361721#M274748</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-05-25T17:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361813#M274749</link>
      <description>&lt;P&gt;The WEIGHT statement is to provide other information about the data. Please see this brief example:&lt;/P&gt;
&lt;PRE&gt;data junk;
    input syear weight value ;
datalines;
2000  15.3   18
2001  12.9   22
2003  10     12
;
run;

proc tabulate data=junk;
   class syear;
   weight weight;
   var value;
   table syear, 
         value *(sum pctsum)
         /
   ;
   Title "with weight statement";
run;title;

proc tabulate data=junk;
   class syear;
   var value;
   table syear, 
         value *(sum pctsum)
         /
   ;
   Title "without weight statement";
run;title;&lt;/PRE&gt;
&lt;P&gt;Weights are often the inverse of a probability of selection so that adjustments, using a weight statement can be made. For instance if the probability of selecting a person of type X from a population is 0.1 then the weight might be 10. So when we combine the responses of different people the weight information helps provide a better view of what's going on overall.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 23:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361813#M274749</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-25T23:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361973#M274750</link>
      <description>&lt;P&gt;Perhaps it is my&amp;nbsp;inexperience with different types of weights. The data I'm using is from a sample survey, and each respondent has a weight that is a proportion of the target population.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here is an example of the data structure and where the weight works with sumwgt but not with pctsum:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="navy"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;FONT color="black"&gt; new;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="blue"&gt;input&lt;FONT color="black"&gt; year personid $ province $ personweight;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="blue"&gt;datalines&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;2016 Person1 Ontario 10&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;2016 Person2 Ontario 15&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;2016 Person3 Ontario 15&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;2016 Person4 Ontario 5&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;2016 Person5 Ontario 15&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;2016 Person6 Quebec 10&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;2016 Person7 Quebec 10&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;2016 Person8 Quebec 5&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;2016 Person9 Quebec 10&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;2016 Person10 Quebec 5&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;;&lt;FONT color="navy"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="navy"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;tabulate&lt;/STRONG&gt; &lt;FONT color="blue"&gt;data&lt;/FONT&gt;&lt;FONT color="black"&gt;=new;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="blue"&gt;class&lt;FONT color="black"&gt; year province;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="blue"&gt;weight&lt;FONT color="black"&gt; personweight;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="blue"&gt;table&lt;FONT color="black"&gt; province,year*personweight*(sumwgt pctsum);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp; &lt;FONT color="blue"&gt;Title&lt;/FONT&gt; &lt;FONT color="purple"&gt;"Proper sumwgt but incorrect pctcum"&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" color="navy"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;FONT color="blue"&gt;title&lt;/FONT&gt;&lt;FONT color="black"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 May 2017 14:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361973#M274750</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-05-26T14:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361994#M274751</link>
      <description>&lt;P&gt;Perhaps you really want to use the FREQ statement instead of the WEIGHT statement for that type of data?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=new;
  class year province;
  freq personweight;
  table province,year*(N pctn);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results&lt;/P&gt;
&lt;PRE&gt;---------------------------------------------------
|                       |          year           |
|                       |-------------------------|
|                       |          2016           |
|                       |-------------------------|
|                       |     N      |    PctN    |
|-----------------------+------------+------------|
|province               |            |            |
|-----------------------|            |            |
|Ontario                |       60.00|       60.00|
|-----------------------+------------+------------|
|Quebec                 |       40.00|       40.00|
---------------------------------------------------&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 May 2017 15:12:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/361994#M274751</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-05-26T15:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362061#M274752</link>
      <description>&lt;P&gt;OK, this is great thanks; it appears to work for the most part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this does have a limitarion&amp;nbsp;which I have observed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="6"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;a FREQ variable value is missing or is less than 1&lt;/TD&gt;&lt;TD&gt;does not use that observation to calculate statistics&lt;/TD&gt;&lt;TD&gt;no alternative&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the monthly data, this is fine. But for annual averages, I've been dividing the personweight by 12, which has been working. However, for many cases this results in an annualweight of less than 1 so they appear to be excluded, and it is lowering the N by quite a bit. Any way to deak with&amp;nbsp;this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 18:58:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362061#M274752</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-05-26T18:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362108#M274753</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98628"&gt;@fieldsa83&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Again: Please provide sample data and a desired output sample for what you want our help with (=data for your annual averages). Getting such data means much more clarity for us what's the problem, better answers for you and less guess work and time spent for us to provide you with tested code samples.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 00:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362108#M274753</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-05-27T00:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362111#M274754</link>
      <description>&lt;P&gt;Change the order of operations, divide by 12 after you calculate your final values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 01:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362111#M274754</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-27T01:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362118#M274755</link>
      <description>&lt;P&gt;Yes, I tried&amp;nbsp;doing (N/12) but that didn't work.&amp;nbsp;Is there a way to do it in PROC TABULATE?&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 02:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362118#M274755</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-05-27T02:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Am I going crazy? Percentages in PROC TABULATE are wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362133#M274756</link>
      <description>&lt;P&gt;Not AFAIK.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. If you're working with PUMF files the documentation for most that I've seen illustrate how to handle the weights with example SAS code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 03:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Am-I-going-crazy-Percentages-in-PROC-TABULATE-are-wrong/m-p/362133#M274756</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-27T03:06:18Z</dc:date>
    </item>
  </channel>
</rss>

