<?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 Plot a by b means using SAS UE in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plot-a-by-b-means-using-SAS-UE/m-p/630519#M19576</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run an sgplot procedure using SAS UE. The purpose is to plot a variable by another variable means. I have the procedure I am trying to follow that uses gplot (which does not work for SAS UE). I'm not sure what the equivalent would be when using SAS UE. I appreciate any help regarding this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Procedure given (cannot be used for SAS UE):&lt;/P&gt;&lt;P&gt;proc gplot data=clinical;&lt;BR /&gt;axis1 length=4 in;&lt;BR /&gt;axis2 length=6 in;&lt;BR /&gt;plot dna*lipid=tpa / vaxis=axis1 haxis=axis2;&lt;BR /&gt;symbol1 v=J f=special h=3 i=join color=blue;&lt;BR /&gt;symbol2 v=K f=special h=3 i=join color=red;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-03-08 at 16.48.58.png" style="width: 266px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36694i9BE5E244949DC24A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-03-08 at 16.48.58.png" alt="Screen Shot 2020-03-08 at 16.48.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Final plot (tpa by lipid means, goal for SAS UE procedure not yet gotten):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-03-08 at 16.50.12.png" style="width: 379px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36695i5012659B7F5B52B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-03-08 at 16.50.12.png" alt="Screen Shot 2020-03-08 at 16.50.12.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 08 Mar 2020 20:52:29 GMT</pubDate>
    <dc:creator>strugglingwsas</dc:creator>
    <dc:date>2020-03-08T20:52:29Z</dc:date>
    <item>
      <title>Plot a by b means using SAS UE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-a-by-b-means-using-SAS-UE/m-p/630519#M19576</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run an sgplot procedure using SAS UE. The purpose is to plot a variable by another variable means. I have the procedure I am trying to follow that uses gplot (which does not work for SAS UE). I'm not sure what the equivalent would be when using SAS UE. I appreciate any help regarding this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Procedure given (cannot be used for SAS UE):&lt;/P&gt;&lt;P&gt;proc gplot data=clinical;&lt;BR /&gt;axis1 length=4 in;&lt;BR /&gt;axis2 length=6 in;&lt;BR /&gt;plot dna*lipid=tpa / vaxis=axis1 haxis=axis2;&lt;BR /&gt;symbol1 v=J f=special h=3 i=join color=blue;&lt;BR /&gt;symbol2 v=K f=special h=3 i=join color=red;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-03-08 at 16.48.58.png" style="width: 266px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36694i9BE5E244949DC24A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-03-08 at 16.48.58.png" alt="Screen Shot 2020-03-08 at 16.48.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Final plot (tpa by lipid means, goal for SAS UE procedure not yet gotten):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-03-08 at 16.50.12.png" style="width: 379px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36695i5012659B7F5B52B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-03-08 at 16.50.12.png" alt="Screen Shot 2020-03-08 at 16.50.12.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 20:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-a-by-b-means-using-SAS-UE/m-p/630519#M19576</guid>
      <dc:creator>strugglingwsas</dc:creator>
      <dc:date>2020-03-08T20:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Plot a by b means using SAS UE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-a-by-b-means-using-SAS-UE/m-p/630523#M19577</link>
      <description>&lt;P&gt;Something like this should do:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table graph as
select 
	tpa, 
	mean(lipid) as lipid,
	mean(dna) as dna
from clinical
group by tpa;
quit;
 
ods graphics / height=4in width=6in;
proc sgplot data=graph noautolegend;
styleattrs 
	DATACONTRASTCOLORS=(blue red) 
	DATASYMBOLS=(squarefilled circlefilled);
series y=dna x=lipid / group=tpa 
markers markerattrs=(size=8)
lineattrs=(pattern=solid);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 08 Mar 2020 21:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-a-by-b-means-using-SAS-UE/m-p/630523#M19577</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-03-08T21:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Plot a by b means using SAS UE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-a-by-b-means-using-SAS-UE/m-p/631238#M19582</link>
      <description>&lt;P&gt;This is called an "Interaction Plot" and it is produced automatically when you perform a two-way analysis of mean with an interaction term:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dna;
input TPA lipid DNA;
datalines;
0 0 269
0 0 256
0 0 274
0 0 225
0 1 208
0 1 223
0 1 217
0 1 180
1 0 314
1 0 336
1 0 332
1 0 373
1 1 252
1 1 276
1 1 195
1 1 198
;

proc glm data=DNA plots=IntPlot;
  class TPA lipid;
  model DNA = TPA | lipid;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you don't want to see the observed values, you can write the model to an item store and &lt;A href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_self"&gt;use PROC PLM to create an effect plot&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=DNA;
class TPA lipid;
model DNA = TPA | lipid;
store GlmModel;
run;

proc plm restore=GLMModel;
effectplot;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2020 14:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-a-by-b-means-using-SAS-UE/m-p/631238#M19582</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-03-11T14:44:53Z</dc:date>
    </item>
  </channel>
</rss>

