<?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: Proc gmap using map=poland2 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gmap-using-map-poland2/m-p/368767#M12784</link>
    <description>&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you as well tell me what can i do, if i want to use the proc means procedure in order to get the means of a variable dedicated to particular classes (options class in proc means) so that means were the only options in the dataset? Please see the pictures below. I use these codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=idvar mean;&lt;BR /&gt;class wojid;&lt;BR /&gt;var dochg;&lt;BR /&gt;output out=sredniak;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=sredniak;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I would like the dataset 'sredniak' to contain only the data which is shown using proc means. Unfortunately, if i use proc print then i get as well std, min, max and as well I get the general statistics for the whole dataset, not only for particular classes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tsievu100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13966iF535D3C49E09686D/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Proc means.PNG" title="Proc means.PNG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13967i56C7D2EC0485977C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Proc print.PNG" title="Proc print.PNG" /&gt;</description>
    <pubDate>Tue, 20 Jun 2017 14:52:06 GMT</pubDate>
    <dc:creator>Tsievu100</dc:creator>
    <dc:date>2017-06-20T14:52:06Z</dc:date>
    <item>
      <title>Proc gmap using map=poland2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gmap-using-map-poland2/m-p/367672#M12772</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am actually trying to visualize my data using a map graph. Therefore, i decided to use proc gmap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an excel file which contains different variables. One of them is the state id of polish voivodeships (in map Poland2 the variable is contained in the range between 1 to 16). For that reason I changed in the excel file the variable's name for wojid - so that it was the same in both input data set (the one from excel) and in the map dataset. I also changed the lenght of the variable (in the dataset imported from excel it was 8 and in the map it was 5) so using the data step i changed it in both for numeric 5. I sorted both map dataset by wojid and exported it by using 'out' statement and my excel dataset. I am not sure what steps should i take further. I have a variable dochg, which represents income. I would like to visualize the average income (var dochg) for every single voivedoship (var wojid) but unfortunately i am getting all the time an error. I am doing following procedures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorting the dataset maps poland2 by var wojid and exporting it to dataset = polska.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=maps.poland2 out=polska;&lt;BR /&gt;by wojid;&lt;BR /&gt;run;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing the length of var wojid to 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data gospy;&lt;BR /&gt;set work.gospodarstwa;&lt;BR /&gt;length wojid 5.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorting the new dataset by var wojid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=gospy;&lt;BR /&gt;by wojid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then i would like to visualize the results by using below statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gmap data=gospy map=polska all;&lt;BR /&gt;id wojid;&lt;BR /&gt;choro dochg;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i get a following error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;34&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc gmap data=gospy map=polska;&lt;BR /&gt;35&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id wojid;&lt;BR /&gt;36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; choro dochg;&lt;BR /&gt;37&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: Input data set missing X variable.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: Input data set missing Y variable.&lt;/FONT&gt;&lt;BR /&gt;38&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should add that i would like to firstly create a dataset which contains the average of the variable dochg classed by the variable wojid, therefore i use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=idvar sum;&lt;BR /&gt;class wojid;&lt;BR /&gt;var dochg;&lt;BR /&gt;output out=sredniak;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me? I am struggling with this case for quite a long time without any success. If you need any further info please let me know. I should add that i am quite new to data analysis and therefore I am not so fluent with cases in which i face problems. I am attaching the excel file with the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance for any queries/answers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tsievu100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 11:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gmap-using-map-poland2/m-p/367672#M12772</guid>
      <dc:creator>Tsievu100</dc:creator>
      <dc:date>2017-06-16T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gmap using map=poland2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gmap-using-map-poland2/m-p/367734#M12773</link>
      <description>&lt;P&gt;The Poland2 data set is basically to provide name information. The actual map coordinate data set is Poland. There is a variable in the Poland data set ID that matches the Powiat value in the ID variable in the Poland2 set&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 14:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gmap-using-map-poland2/m-p/367734#M12773</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-16T14:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gmap using map=poland2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gmap-using-map-poland2/m-p/368767#M12784</link>
      <description>&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you as well tell me what can i do, if i want to use the proc means procedure in order to get the means of a variable dedicated to particular classes (options class in proc means) so that means were the only options in the dataset? Please see the pictures below. I use these codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=idvar mean;&lt;BR /&gt;class wojid;&lt;BR /&gt;var dochg;&lt;BR /&gt;output out=sredniak;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=sredniak;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I would like the dataset 'sredniak' to contain only the data which is shown using proc means. Unfortunately, if i use proc print then i get as well std, min, max and as well I get the general statistics for the whole dataset, not only for particular classes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tsievu100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13966iF535D3C49E09686D/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Proc means.PNG" title="Proc means.PNG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13967i56C7D2EC0485977C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Proc print.PNG" title="Proc print.PNG" /&gt;</description>
      <pubDate>Tue, 20 Jun 2017 14:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gmap-using-map-poland2/m-p/368767#M12784</guid>
      <dc:creator>Tsievu100</dc:creator>
      <dc:date>2017-06-20T14:52:06Z</dc:date>
    </item>
  </channel>
</rss>

