<?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 SGPlot - Display Missing Category in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-Display-Missing-Category/m-p/636713#M19700</link>
    <description>&lt;P&gt;Hi - I am trying to generate graph for categorical variables which has value of (missing, 0 and 1 for numeric value). Currently, I have a code which only displays the non-missing values (0,1) and I am wondering if sgplot need any instruction to display the missing bucket.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI: My list of variable contains both numeric and character so depending on type, I will have&amp;nbsp; '.' for numeric and '' for character.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;DATA cars1;&lt;BR /&gt;infile DATALINES dsd missover;&lt;BR /&gt;&amp;nbsp;INPUT var val;&lt;BR /&gt;CARDS;&lt;BR /&gt;&amp;nbsp;,0.2099&lt;BR /&gt;0,0.4749&lt;BR /&gt;1,0.7827&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;proc sgplot data=cars1;&lt;BR /&gt;vbar var / response=val group=var&lt;BR /&gt;&amp;nbsp;&amp;nbsp; datalabel datalabelattrs=(weight=bold);&lt;BR /&gt;&amp;nbsp;yaxis grid label='Actual Default Rate' ;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;DATA cars2;&lt;BR /&gt;infile DATALINES dsd missover;&lt;BR /&gt;&amp;nbsp;INPUT var $ val;&lt;BR /&gt;CARDS;&lt;BR /&gt;&amp;nbsp;,0.2099&lt;BR /&gt;A,0.4749&lt;BR /&gt;B,0.7827&lt;BR /&gt;;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;proc sgplot data=cars2;&lt;BR /&gt;vbar var / response=val group=var&lt;BR /&gt;&amp;nbsp;&amp;nbsp; datalabel datalabelattrs=(weight=bold);&lt;BR /&gt;&amp;nbsp;yaxis grid label='Actual Default Rate' ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;Can you please advice on how to include missing values on the sgplot?&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 01 Apr 2020 23:50:20 GMT</pubDate>
    <dc:creator>Pritish</dc:creator>
    <dc:date>2020-04-01T23:50:20Z</dc:date>
    <item>
      <title>SGPlot - Display Missing Category</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-Display-Missing-Category/m-p/636713#M19700</link>
      <description>&lt;P&gt;Hi - I am trying to generate graph for categorical variables which has value of (missing, 0 and 1 for numeric value). Currently, I have a code which only displays the non-missing values (0,1) and I am wondering if sgplot need any instruction to display the missing bucket.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI: My list of variable contains both numeric and character so depending on type, I will have&amp;nbsp; '.' for numeric and '' for character.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;DATA cars1;&lt;BR /&gt;infile DATALINES dsd missover;&lt;BR /&gt;&amp;nbsp;INPUT var val;&lt;BR /&gt;CARDS;&lt;BR /&gt;&amp;nbsp;,0.2099&lt;BR /&gt;0,0.4749&lt;BR /&gt;1,0.7827&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;proc sgplot data=cars1;&lt;BR /&gt;vbar var / response=val group=var&lt;BR /&gt;&amp;nbsp;&amp;nbsp; datalabel datalabelattrs=(weight=bold);&lt;BR /&gt;&amp;nbsp;yaxis grid label='Actual Default Rate' ;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;DATA cars2;&lt;BR /&gt;infile DATALINES dsd missover;&lt;BR /&gt;&amp;nbsp;INPUT var $ val;&lt;BR /&gt;CARDS;&lt;BR /&gt;&amp;nbsp;,0.2099&lt;BR /&gt;A,0.4749&lt;BR /&gt;B,0.7827&lt;BR /&gt;;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;proc sgplot data=cars2;&lt;BR /&gt;vbar var / response=val group=var&lt;BR /&gt;&amp;nbsp;&amp;nbsp; datalabel datalabelattrs=(weight=bold);&lt;BR /&gt;&amp;nbsp;yaxis grid label='Actual Default Rate' ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;Can you please advice on how to include missing values on the sgplot?&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Apr 2020 23:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-Display-Missing-Category/m-p/636713#M19700</guid>
      <dc:creator>Pritish</dc:creator>
      <dc:date>2020-04-01T23:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot - Display Missing Category</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-Display-Missing-Category/m-p/636724#M19702</link>
      <description>&lt;P&gt;add "missing" to your "vbar ... " statements. like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA cars1;
infile DATALINES dsd missover;
 INPUT var val;
CARDS;
 ,0.2099
0,0.4749
1,0.7827
;
RUN;
proc sgplot data=cars1;
vbar var / response=val group=var
   datalabel datalabelattrs=(weight=bold) missing;
 yaxis grid label='Actual Default Rate' ;
run;
DATA cars2;
infile DATALINES dsd missover;
 INPUT var $ val;
CARDS;
 ,0.2099
A,0.4749
B,0.7827
;
proc sgplot data=cars2;
vbar var / response=val group=var
   datalabel datalabelattrs=(weight=bold) missing;
 yaxis grid label='Actual Default Rate' ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 00:39:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-Display-Missing-Category/m-p/636724#M19702</guid>
      <dc:creator>jjjch</dc:creator>
      <dc:date>2020-04-02T00:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot - Display Missing Category</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-Display-Missing-Category/m-p/636729#M19703</link>
      <description>Thank you very much!</description>
      <pubDate>Thu, 02 Apr 2020 00:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-Display-Missing-Category/m-p/636729#M19703</guid>
      <dc:creator>Pritish</dc:creator>
      <dc:date>2020-04-02T00:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot - Display Missing Category</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-Display-Missing-Category/m-p/636740#M19704</link>
      <description>Please mark the question as solved by selecting the correct answer.</description>
      <pubDate>Thu, 02 Apr 2020 01:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-Display-Missing-Category/m-p/636740#M19704</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-02T01:29:30Z</dc:date>
    </item>
  </channel>
</rss>

