<?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: NOTE: stat=PCT is invalid. The default will be used. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/NOTE-stat-PCT-is-invalid-The-default-will-be-used/m-p/639158#M19747</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;Thanks for the quick explanation.&lt;/P&gt;
&lt;P&gt;It really helps. I understand now.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Apr 2020 15:54:13 GMT</pubDate>
    <dc:creator>Miracle</dc:creator>
    <dc:date>2020-04-11T15:54:13Z</dc:date>
    <item>
      <title>NOTE: stat=PCT is invalid. The default will be used.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NOTE-stat-PCT-is-invalid-The-default-will-be-used/m-p/639140#M19745</link>
      <description>&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Dear All,&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;May I please ask why am I getting this "NOTE: stat=PCT is invalid. The default will be used." from my proc sgrender? What is the default?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt; Below is the partial code from proc template. I am using SAS 9.4.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Thank you in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;993        proc template;
994           define statgraph unifonts;
995           begingraph;
&amp;#12;996           *entrytitle 'Reason';
997           entryfootnote ' ' / textattrs=(size=40 );
998              layout overlay / xaxisopts=(display=( tickvalues)  type=DISCRETE linearopts=( /*tickvaluelist=( 12 13
998      ! 14 15 16 17 18 19 )*/  tickdisplaylist=( 'Two or fewer hours' 'Full day'
999        'Half a day' '2 days'  'More than 2, up to 4 days' 'More than 4, up to 8 days' 'More than 8, up to 15 days'
999      ! 'It never stops' )   viewmin=12 viewmax=19 )
1000          DISCRETEOPTS=(TICKVALUEROTATION=DIAGONAL TICKVALUEFITPOLICY=ROTATE SORTORDER=DATA
1000     ! TICKVALUESPLITCHARDROP=TRUE))
1001       yaxisopts=(label="Percentage of subjects" offsetmin=0 griddisplay=on linearopts=(tickvaluesequence=(start=0
1001     ! end=100 increment=10) tickvaluepriority=true));
1002       
1003                barchart x=QUERES1C y=PCT_  / group=AGECAT1F groupdisplay=cluster name='agecat' Stat=PCT
1004                          barwidth=1  barlabel=true barlabelattrs=(size=9pt )   barlabelformat=PCTBARLF. display=all
.
.
.
1031 proc sgrender data=final template=unifonts ; run;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;/FONT&gt;&lt;FONT face="times new roman,times"&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 13:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NOTE-stat-PCT-is-invalid-The-default-will-be-used/m-p/639140#M19745</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2020-04-11T13:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE: stat=PCT is invalid. The default will be used.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NOTE-stat-PCT-is-invalid-The-default-will-be-used/m-p/639147#M19746</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16719"&gt;@Miracle&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://documentation.sas.com/?docsetId=grstatgraph&amp;amp;docsetTarget=n1dlakkx61v72in1k3ebm8rz18qd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0fhwkok2ilp1sn1r2825afhui6v" target="_blank" rel="noopener"&gt;BARCHART statement documentation&lt;/A&gt;&amp;nbsp;says: "&lt;SPAN&gt;For bar charts with a&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" title="" href="https://documentation.sas.com/?docsetId=grstatgraph&amp;amp;docsetTarget=n1dlakkx61v72in1k3ebm8rz18qd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n126zfsqtyfllan144to0hvhsl0h" data-docset-id="grstatgraph" data-docset-version="9.4" data-original-href="n1dlakkx61v72in1k3ebm8rz18qd.htm#n126zfsqtyfllan144to0hvhsl0h"&gt;RESPONSE=&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;column, the default is SUM."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This applies to your code because Y= is an alias of RESPONSE=.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, if your response variable &lt;FONT face="courier new,courier"&gt;PCT_&lt;/FONT&gt; contains percentage values such as 12.34 (meaning 12.34%), the default statistic SUM is likely what you want anyway (and you can just omit the STAT= option), especially if your input dataset &lt;FONT face="courier new,courier"&gt;final&lt;/FONT&gt; contains at most one observation per combination of QUERES1C and AGECAT1F. In case of more than one observation per combination the individual values would be summed up (like 12.34%+11.5%=23.84%).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The specification STAT=PCT in the absence of a RESPONSE= column (i.e., without Y=PCT_ or without a variable PCT_ in the input dataset), however, would instruct SAS to compute the percentages. That is, SAS would count the observations in each&amp;nbsp;QUERES1C-AGECAT1F category (and the overall total) and use the relative frequencies times 100 as the heights of the bars.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 13:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NOTE-stat-PCT-is-invalid-The-default-will-be-used/m-p/639147#M19746</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-04-11T13:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE: stat=PCT is invalid. The default will be used.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/NOTE-stat-PCT-is-invalid-The-default-will-be-used/m-p/639158#M19747</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;Thanks for the quick explanation.&lt;/P&gt;
&lt;P&gt;It really helps. I understand now.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 15:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/NOTE-stat-PCT-is-invalid-The-default-will-be-used/m-p/639158#M19747</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2020-04-11T15:54:13Z</dc:date>
    </item>
  </channel>
</rss>

