<?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: Im sure a simple question: Trying to create a scatter plot for four group at six different point in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439457#M4688</link>
    <description>&lt;P&gt;Sorry about that. Im not really sure how to describe things just yet. I have two categorical variables (from my code Variable 2 and Variable 3) So i want the averages of all Variable1 data, for groups 1-4 of Variable3, throughout 6 phases of Variable2. So my y axis would only have 6 points, and in the chart i would only have four points associated there being the averages of Variable1 for each group of Variable3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like Im not saying this very clearly but am not really sure how else to describe this. Im sorry!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 20:49:20 GMT</pubDate>
    <dc:creator>jheinsius</dc:creator>
    <dc:date>2018-02-22T20:49:20Z</dc:date>
    <item>
      <title>Im sure a simple question: Trying to create a scatter plot for four group at six different points</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439441#M4686</link>
      <description>&lt;P&gt;Very new to SAS! I currently have a plot with all my data points but I want to just have averages. Is there a way to code in that I want to do an average of a variable within the sgplot procedure.&amp;nbsp; I thought I could just do y=AVE(Variable Name) but that didn't work. Then I thought I could create the variables almost with an average but I don't know how to do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?? Sorry if this is something super easy I just couldn't find an answer when googling. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=WORK.IMPORT1;&lt;BR /&gt;title 'TITLE';&lt;BR /&gt;scatter x=Variable1 y=Varaible2 / group=Variable3;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 20:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439441#M4686</guid>
      <dc:creator>jheinsius</dc:creator>
      <dc:date>2018-02-22T20:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Im sure a simple question: Trying to create a scatter plot for four group at six different point</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439456#M4687</link>
      <description>&lt;P&gt;Averages of your data broken down by what? You really haven't given us a lot to work with here. How about some more details?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 20:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439456#M4687</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-02-22T20:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Im sure a simple question: Trying to create a scatter plot for four group at six different point</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439457#M4688</link>
      <description>&lt;P&gt;Sorry about that. Im not really sure how to describe things just yet. I have two categorical variables (from my code Variable 2 and Variable 3) So i want the averages of all Variable1 data, for groups 1-4 of Variable3, throughout 6 phases of Variable2. So my y axis would only have 6 points, and in the chart i would only have four points associated there being the averages of Variable1 for each group of Variable3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like Im not saying this very clearly but am not really sure how else to describe this. Im sorry!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 20:49:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439457#M4688</guid>
      <dc:creator>jheinsius</dc:creator>
      <dc:date>2018-02-22T20:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Im sure a simple question: Trying to create a scatter plot for four group at six different point</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439458#M4689</link>
      <description>&lt;P&gt;How about using PROC SUMMARY to compute the 24 means you want, then PROC SGPLOT with the DOT command to do the plotting.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 20:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439458#M4689</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-02-22T20:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Im sure a simple question: Trying to create a scatter plot for four group at six different point</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439466#M4690</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok this was my code and I am getting the error: "Attempting to overlay incompatible plot or chart types"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=WORK.IMPORT1;&lt;BR /&gt;title 'TITLE';&lt;BR /&gt;scatter x=Variable1&amp;nbsp;y=Variable2 / group=Variable3;&lt;BR /&gt;DOT&amp;nbsp;Variable3 / STAT=Mean RESPONSE=Variable2;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439466#M4690</guid>
      <dc:creator>jheinsius</dc:creator>
      <dc:date>2018-02-22T21:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Im sure a simple question: Trying to create a scatter plot for four group at six different point</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439475#M4691</link>
      <description>&lt;P&gt;Certain graph types allow you to summarize the data while graphing it, unfortunately scatter plots are not one of them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to first summarize your data using PROC MEANS and capture that in an output table. Then use that with PROC SGPLOT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of how to use PROC MEANS and get an output data set.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas&lt;/A&gt;&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/185800"&gt;@jheinsius&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Very new to SAS! I currently have a plot with all my data points but I want to just have averages. Is there a way to code in that I want to do an average of a variable within the sgplot procedure.&amp;nbsp; I thought I could just do y=AVE(Variable Name) but that didn't work. Then I thought I could create the variables almost with an average but I don't know how to do that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?? Sorry if this is something super easy I just couldn't find an answer when googling. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=WORK.IMPORT1;&lt;BR /&gt;title 'TITLE';&lt;BR /&gt;scatter x=Variable1 y=Varaible2 / group=Variable3;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Im-sure-a-simple-question-Trying-to-create-a-scatter-plot-for/m-p/439475#M4691</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-22T21:28:36Z</dc:date>
    </item>
  </channel>
</rss>

