<?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: digits of the values PROC GMAP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/469968#M120273</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate&amp;nbsp;your&amp;nbsp;response. I&amp;nbsp;do not know how to round within the code. Is it possible inside the code or should I round the values of the outputs first?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to map specific&amp;nbsp;outputs of a regression model e.g., residuals, please find the legend attached. however&amp;nbsp;i want the values to be rounded to only 2-digits (i.e., 0.53-0.67, 0.67-0.73, 0.73-0.80, 0.80-0.88)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 15:45:10 GMT</pubDate>
    <dc:creator>Rajkaht</dc:creator>
    <dc:date>2018-06-13T15:45:10Z</dc:date>
    <item>
      <title>digits of the values PROC GMAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/469278#M120010</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using gmap procedures to produce maps of the estimates of a model. SAS by default generates the range of these estimates and I can manage the levels but I could be able to manage the digits "decimals" of the estimates. I want to show only 2-digits in the values of the legend.&lt;BR /&gt;is there a way to add it to the code?&lt;/P&gt;&lt;P&gt;I appreciate any help.&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;here is my code&lt;BR /&gt;%macro map(data=,var=);&lt;BR /&gt;goptions reset=all;&lt;BR /&gt;proc gmap data=&amp;amp;data map=results all ;&lt;BR /&gt;id gc;&lt;BR /&gt;choro &amp;amp;var / legend=legend1 LEVELS=5;&lt;BR /&gt;legend1 position=( bottom right inside ) offset=(1.2cm ,0cm ) shape=bar(2,1) across=1 mode=PROTECT label=none / value=(h=0.8 f=swissb justify=left);&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;%mend map;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 15:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/469278#M120010</guid>
      <dc:creator>Rajkaht</dc:creator>
      <dc:date>2018-06-11T15:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: digits of the values PROC GMAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/469838#M120224</link>
      <description>&lt;P&gt;Needs not totally clear, and an example would&amp;nbsp;be welcome, but have you tried:&lt;/P&gt;
&lt;P&gt;- Assigning a format ?&lt;/P&gt;
&lt;P&gt;- Rounding the value ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 06:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/469838#M120224</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-06-13T06:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: digits of the values PROC GMAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/469968#M120273</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate&amp;nbsp;your&amp;nbsp;response. I&amp;nbsp;do not know how to round within the code. Is it possible inside the code or should I round the values of the outputs first?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to map specific&amp;nbsp;outputs of a regression model e.g., residuals, please find the legend attached. however&amp;nbsp;i want the values to be rounded to only 2-digits (i.e., 0.53-0.67, 0.67-0.73, 0.73-0.80, 0.80-0.88)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/469968#M120273</guid>
      <dc:creator>Rajkaht</dc:creator>
      <dc:date>2018-06-13T15:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: digits of the values PROC GMAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/470003#M120283</link>
      <description>&lt;P&gt;I would start by applying a format to the variable that displays the with the desired appearance.&lt;/P&gt;
&lt;P&gt;An example where I make an generic data set to actually display something and two versions of a minimal Gmap call to demonstrate the difference a format can make:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
   create table work.statedata as
   select statecode, rand('uniform') as val
   from (select  distinct statecode from maps.us)
   ;
quit;

proc gmap data=work.statedata
          map=maps.us
;
   id statecode;
   choro val/levels=5;
run;
quit;


proc gmap data=work.statedata
          map=maps.us
;
   id statecode;
   choro val/levels=5;
   format val f4.2;
run;
quit;&lt;/PRE&gt;
&lt;P&gt;I might suggest using a custom format as the above example is likely to generate end points that appear in multiple levels and/or have gaps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a brief example:&lt;/P&gt;
&lt;PRE&gt;proc format library=work;
value mylev
0    - 0.2 = ' 0 - 0.20'
0.2 &amp;lt;- 0.4 = '0.2 &amp;lt; 0.4'
0.4 &amp;lt;- 0.6 = '0.4 &amp;lt; 0.6'
0.6 &amp;lt;- 0.8 = '0.6 &amp;lt; 0.8'
0.8 &amp;lt;- 1.0 = '0.8 &amp;lt; 1'
;
run;
proc gmap data=work.statedata
          map=maps.us
;
   id statecode;
   choro val/discrete;
   format val mylev.;
run;
quit;&lt;/PRE&gt;
&lt;P&gt;Notice use of discrete instead of levels. The above has an additional advantage that you could change the groupings just by either changing the definition of the format or using a different format and not having to adjust the number of levels. This does change to using a discrete color system which would follow pattern definitions instead of a color ramp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 17:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/470003#M120283</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-13T17:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: digits of the values PROC GMAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/470135#M120340</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, it works.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 22:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/digits-of-the-values-PROC-GMAP/m-p/470135#M120340</guid>
      <dc:creator>Rajkaht</dc:creator>
      <dc:date>2018-06-13T22:09:22Z</dc:date>
    </item>
  </channel>
</rss>

