<?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: Help with creating individual graphs with a large data set in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925043#M45964</link>
    <description>&lt;P&gt;Hmm this may work as well. Can you elaborate on how you would do this? I am about to play around with this is SAS as well. Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 16:47:23 GMT</pubDate>
    <dc:creator>cjpink07</dc:creator>
    <dc:date>2024-04-19T16:47:23Z</dc:date>
    <item>
      <title>Help with creating individual graphs with a large data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925008#M45957</link>
      <description>&lt;P&gt;I am working with survey responses from a large needs assessment for different areas. I am looking for a way to create individual graphs that show responses to &lt;STRONG&gt;each health behavior question based on each zip code&lt;/STRONG&gt;. There are about 100 zip codes and 20 health behavior questions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 15:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925008#M45957</guid>
      <dc:creator>cjpink07</dc:creator>
      <dc:date>2024-04-19T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating individual graphs with a large data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925019#M45959</link>
      <description>&lt;P&gt;That's a lot of plots, around 2,000! What are you going to do with them once you have them? Depending on what you plan to do, we might be able to suggest other methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really really really really need 2,000 plots, this isn't hard to program. Use PROC SGPLOT with a BY statement.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925019#M45959</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-04-19T16:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating individual graphs with a large data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925028#M45960</link>
      <description>&lt;P&gt;Yea that's what I have been doing and yes my company wants each (I mean every single) graph lol&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:12:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925028#M45960</guid>
      <dc:creator>cjpink07</dc:creator>
      <dc:date>2024-04-19T16:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating individual graphs with a large data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925038#M45961</link>
      <description>&lt;P&gt;I would be very tempted to structure the data so that I had data that looked like:&lt;/P&gt;
&lt;P&gt;Zipcode&amp;nbsp; MeasureName&amp;nbsp; (x variable if needed) Value (the y value).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sort as desired by either measure or zip code. Then your graphing code could use By ZipCode Measurename; or By Measurename Zipcode; to provide all the graphs. Or even do two sets, each with different sort so the group could by like measure or by zip code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925038#M45961</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-04-19T16:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating individual graphs with a large data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925039#M45962</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/464401"&gt;@cjpink07&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yea that's what I have been doing and yes my company wants each (I mean every single) graph lol&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;What are you going to do with all of these plots once you have them?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925039#M45962</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-04-19T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating individual graphs with a large data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925043#M45964</link>
      <description>&lt;P&gt;Hmm this may work as well. Can you elaborate on how you would do this? I am about to play around with this is SAS as well. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925043#M45964</guid>
      <dc:creator>cjpink07</dc:creator>
      <dc:date>2024-04-19T16:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating individual graphs with a large data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925044#M45965</link>
      <description>&lt;P&gt;The director wants to prepare a booklet on these specific health behaviors for each zip code to present.&amp;nbsp; I explained how many graphs and how much time this will take but they did not accept my recommendations so I am following orders&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925044#M45965</guid>
      <dc:creator>cjpink07</dc:creator>
      <dc:date>2024-04-19T16:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating individual graphs with a large data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925045#M45966</link>
      <description>&lt;P&gt;Once the data is in&amp;nbsp; a nice form the time should be pretty negligible to create the graphs.&lt;/P&gt;
&lt;P&gt;If by "booklet" it means a single document with all the health behaviors within a zip that takes a little added programming but you might be surprised how little. A proper sorted data set made from your graph data can be used as a driver to write syntax to make the documents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would expect with the proper data set that I would be looking at a couple hours to a long day depending on other possible requirements (such as inserting boilerplate or conditional text between graphs).&lt;/P&gt;
&lt;P&gt;Assuming you can get one set graphs made with dummy code like this:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=whatever;
   where zip=12345; /*as an example to graph just one zip code*/
   by healthbehavior; /* or whatever the variable name might be*/
   &amp;lt;actual plot code goes here&amp;gt;
run;&lt;/PRE&gt;
&lt;P&gt;Then a data set that has the Zip codes can do something like this:&lt;/P&gt;
&lt;PRE&gt;data _null_;
   set zipcodedataset ;
   call execute ('ods rtf file="&amp;lt;path&amp;gt;\graphs'||zip||'.rtf" &amp;lt;other ods options&amp;gt;;');
   call execute ('proc sgplot data=whatever;');
   call execute ('where zip='||zip||';');
   call execute ('by healthbehavior;')
   call execute ('&amp;lt;actual plot code goes here&amp;gt;');&lt;BR /&gt;   call execute ('run;');
   call execute ('ods rtf close;');
run;&lt;/PRE&gt;
&lt;P&gt;or use similar code to PUT similar statements to a SAS program file and then %include it when the data step finishes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF there are multiple types of graphs within each zip code then write the code to do set. Then in the data _null_ have each graph with its set of call execute statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is getting the first zip code done that is the "hard" part. Once that is done it is fiddly bits to do 10, 100 or 1000's of Zipcodes.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 17:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925045#M45966</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-04-19T17:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating individual graphs with a large data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925053#M45967</link>
      <description>&lt;P&gt;Got it! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 18:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925053#M45967</guid>
      <dc:creator>cjpink07</dc:creator>
      <dc:date>2024-04-19T18:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating individual graphs with a large data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925056#M45968</link>
      <description>&lt;P&gt;I mean, &lt;A href="https://open.alberta.ca/dataset/e72caa19-ac86-4d70-8899-17da90df99cd/resource/f114ef0d-d758-4079-920e-b70e3b349787/download/hlth-phc-claresholm-2022.pdf" target="_self"&gt;we did create these reports with SAS&lt;/A&gt; so there's a ton of functionality available to automate. There were 132 different reports created.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it depends on the amount of effort you want to put in to the report, but it's definitely doable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Super basic starting ideas:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 18:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-creating-individual-graphs-with-a-large-data-set/m-p/925056#M45968</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2024-04-19T18:53:04Z</dc:date>
    </item>
  </channel>
</rss>

