<?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: County Heat Map in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624555#M184008</link>
    <description>&lt;P&gt;FYI "maps" on Ln 95 wasn't supposed to be there and was removed.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2020 18:12:16 GMT</pubDate>
    <dc:creator>Whitlea</dc:creator>
    <dc:date>2020-02-13T18:12:16Z</dc:date>
    <item>
      <title>County Heat Map</title>
      <link>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624513#M183991</link>
      <description>&lt;P&gt;SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to create a county heat map with count and county name included on the map.&amp;nbsp; I think that my variable county is clashing with maps.counties variable but I cant tell.&amp;nbsp; These are the errors that are coming up:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Some observations were discarded when charting County.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By variables are not properly sorted on data set work.mtcontycnt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the data set work.mtmap may be incomplete.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I was wondering if there is a procedure in SAS that will categorize my count groups for me that makes sense statistically?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks So Much for the Help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 16:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624513#M183991</guid>
      <dc:creator>Whitlea</dc:creator>
      <dc:date>2020-02-13T16:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: County Heat Map</title>
      <link>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624555#M184008</link>
      <description>&lt;P&gt;FYI "maps" on Ln 95 wasn't supposed to be there and was removed.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 18:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624555#M184008</guid>
      <dc:creator>Whitlea</dc:creator>
      <dc:date>2020-02-13T18:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: County Heat Map</title>
      <link>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624587#M184023</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/133143"&gt;@Whitlea&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;SAS 9.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some observations were discarded when charting County.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not an error. This occurs when using the same data set for Data= and MAP= because the DATA will have multiple observations for each ID value. The DATA= data set is expected to have one observation per Id (geographical region) unless you request a summary&amp;nbsp;statistic to display per region.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;By variables are not properly sorted on data set work.mtcontycnt.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Any procedure or data set that uses a BY statement requires the variables to be sorted in the order indicated on the BY statement.&lt;/P&gt;
&lt;P&gt;Use proc sort to sort your work.mtcontycnt set to match. I am assuming this occurs with your MERGE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use your CNT variable directly, no reason to create additional variables. Just use a different format.&lt;/P&gt;
&lt;PRE&gt;proc format ; 
value cntgrp 
.         = '&amp;lt;30'
 0 -&amp;lt; 30  = '&amp;lt;30' 
30 - 60   = '30-60' 
61 - 91   = '61-91' 
92 - 122  = '92-122' 
123 - 153 = '123-153'
154 - 184 = '154-184'
185 - 210 = '185-210'; &lt;/PRE&gt;
&lt;P&gt;That way if you decide to change the ranges then you only need to modify the format and not go back through a data step to add a new, or replace the existing, variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Also I was wondering if there is a procedure in SAS that will categorize my count groups for me that makes sense statistically?&amp;nbsp;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You would have to describe what you mean by "makes sense statistically".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As in which statistic, what it measures and such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might use the Choro option LEVELS to create a number region grouping values instead of your format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 18:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624587#M184023</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-13T18:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: County Heat Map</title>
      <link>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624602#M184027</link>
      <description>&lt;P&gt;Thanks so much for the levels suggestion!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 19:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624602#M184027</guid>
      <dc:creator>Whitlea</dc:creator>
      <dc:date>2020-02-13T19:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: County Heat Map</title>
      <link>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624661#M184051</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/133143"&gt;@Whitlea&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks so much for the levels suggestion!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;While working out which Level you want you may want to turn on the RANGE option as well to show a legend with the values for each color.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I generally don't leave a final version that way as the Range tends to show the actual values and people are uncomfortable with not knowing where a value that isn't in the data might have gone.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 21:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/County-Heat-Map/m-p/624661#M184051</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-13T21:17:17Z</dc:date>
    </item>
  </channel>
</rss>

