<?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: Why the formating is not working for a spatial distribution map? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-the-formating-is-not-working-for-a-spatial-distribution-map/m-p/833671#M329579</link>
    <description>Thanks that helped.&lt;BR /&gt;Need to add '/ discrete' after choro sk.&lt;BR /&gt;</description>
    <pubDate>Thu, 15 Sep 2022 16:59:44 GMT</pubDate>
    <dc:creator>bd_user_10</dc:creator>
    <dc:date>2022-09-15T16:59:44Z</dc:date>
    <item>
      <title>Why the formating is not working for a spatial distribution map?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-the-formating-is-not-working-for-a-spatial-distribution-map/m-p/833624#M329560</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to create a spatial distribution map within 5 data ranges. Can someone please help me to detect why that's not working? The data ranges are given in the proc format section. Here are the codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions reset=all border;&lt;/P&gt;&lt;P&gt;title "County-level social capital levels, 2005";&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;proc gproject&lt;BR /&gt;data=maps.Counties&lt;BR /&gt;out=allcounties;&lt;BR /&gt;where state ne 2 and state ne 15 and state ne 72;&lt;BR /&gt;id state county;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc format ;&lt;BR /&gt;value sk_&lt;BR /&gt;1 = '-3.9094 - -1.0853'&lt;BR /&gt;2 = '-1.0852 - -0.5139'&lt;BR /&gt;3 = '-0.5138 - 0.0916'&lt;BR /&gt;4 = '0.0917 - 0.9486'&lt;BR /&gt;5 = '0.9487 - 14.2963'&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pattern1 v=s c=grayff;&lt;BR /&gt;pattern2 v=s c=grayaa;&lt;BR /&gt;pattern3 v=s c=graybb;&lt;BR /&gt;pattern4 v=s c=graycc;&lt;BR /&gt;pattern5 v=s c=graydd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gmap&lt;BR /&gt;data=temp.social_capital_2005&lt;BR /&gt;map=allcounties all density=5;&lt;BR /&gt;id state county;&lt;BR /&gt;choro sk ;&lt;BR /&gt;format sk sk_.;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also provided the data in the data section. Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final output should be very similar to the 2005 sample in the link. &lt;A href="https://aese.psu.edu/nercrd/community/social-capital-resources/us-maps-showing-county-social-capital-levels" target="_blank"&gt;https://aese.psu.edu/nercrd/community/social-capital-resources/us-maps-showing-county-social-capital-levels&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 15:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-the-formating-is-not-working-for-a-spatial-distribution-map/m-p/833624#M329560</guid>
      <dc:creator>bd_user_10</dc:creator>
      <dc:date>2022-09-15T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why the formating is not working for a spatial distribution map?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-the-formating-is-not-working-for-a-spatial-distribution-map/m-p/833645#M329569</link>
      <description>&lt;P&gt;Your format for SK_ is incorrect. You attempt to use values of 1, 2, 3,4 and 5 for SK when the actual values are quite different.&lt;/P&gt;
&lt;P&gt;Also, your indicated ranges overlap which is a no-no in general. Formats use value on the LEFT side of the = and display the value on the right side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this format and see if things are better.&lt;/P&gt;
&lt;PRE&gt;proc format ;
value sk_
 -3.9094 - -1.0852 = '-3.9094 - -1.0852'
 -1.0852&amp;lt; - -0.5138= '-1.0853 - -0.5138'
 -0.5138&amp;lt; - 0.0916 = '-0.5139 - 0.0916'
 0.0916&amp;lt; - 0.9486  = '0.0917 - 0.9486'
 0.9486&amp;lt; - high    = '0.9487 - 14.2963'
;
run;&lt;/PRE&gt;
&lt;P&gt;the &amp;lt; in the ranges indicates an open interval, so does not overlap with the previous and provides rules for if there is an actual value of -1.08524.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/228347"&gt;@bd_user_10&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been trying to create a spatial distribution map within 5 data ranges. Can someone please help me to detect why that's not working? The data ranges are given in the proc format section. Here are the codes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;goptions reset=all border;&lt;/P&gt;
&lt;P&gt;title "County-level social capital levels, 2005";&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;proc gproject&lt;BR /&gt;data=maps.Counties&lt;BR /&gt;out=allcounties;&lt;BR /&gt;where state ne 2 and state ne 15 and state ne 72;&lt;BR /&gt;id state county;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc format ;&lt;BR /&gt;value sk_&lt;BR /&gt;1 = '-3.9094 - -1.0853'&lt;BR /&gt;2 = '-1.0852 - -0.5139'&lt;BR /&gt;3 = '-0.5138 - 0.0916'&lt;BR /&gt;4 = '0.0917 - 0.9486'&lt;BR /&gt;5 = '0.9487 - 14.2963'&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;pattern1 v=s c=grayff;&lt;BR /&gt;pattern2 v=s c=grayaa;&lt;BR /&gt;pattern3 v=s c=graybb;&lt;BR /&gt;pattern4 v=s c=graycc;&lt;BR /&gt;pattern5 v=s c=graydd;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gmap&lt;BR /&gt;data=temp.social_capital_2005&lt;BR /&gt;map=allcounties all density=5;&lt;BR /&gt;id state county;&lt;BR /&gt;choro sk ;&lt;BR /&gt;format sk sk_.;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also provided the data in the data section. Thanks in advance for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The final output should be very similar to the 2005 sample in the link. &lt;A href="https://aese.psu.edu/nercrd/community/social-capital-resources/us-maps-showing-county-social-capital-levels" target="_blank" rel="noopener"&gt;https://aese.psu.edu/nercrd/community/social-capital-resources/us-maps-showing-county-social-capital-levels&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 15:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-the-formating-is-not-working-for-a-spatial-distribution-map/m-p/833645#M329569</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-15T15:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why the formating is not working for a spatial distribution map?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-the-formating-is-not-working-for-a-spatial-distribution-map/m-p/833671#M329579</link>
      <description>Thanks that helped.&lt;BR /&gt;Need to add '/ discrete' after choro sk.&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Sep 2022 16:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-the-formating-is-not-working-for-a-spatial-distribution-map/m-p/833671#M329579</guid>
      <dc:creator>bd_user_10</dc:creator>
      <dc:date>2022-09-15T16:59:44Z</dc:date>
    </item>
  </channel>
</rss>

