<?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: Graphing continuous-continuous interaction for a specified range of x-axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-continuous-continuous-interaction-for-a-specified-range/m-p/548406#M17979</link>
    <description>&lt;P&gt;For more flexibility, you could skip proc plm and do your own scoring. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data heart;
set sashelp.heart;
alive = missing(ageAtDeath);
run;

data graphValues;
do smoking = 0, 10, 20, 30;
    do systolic = 120 to 180;
        output;
        end;
    end;
label 
    smoking="Cigarettes per day" 
    systolic="Systolic blood pressure";
run;

proc logistic data=heart;
model alive = systolic smoking;
score data=graphValues out=graphScores;
run;

proc sgplot data=graphScores;
series x=systolic y=p_0 / group=smoking lineattrs=(pattern=solid);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28433iEED145A37FA97611/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot2.png" alt="SGPlot2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2019 04:44:01 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2019-04-04T04:44:01Z</dc:date>
    <item>
      <title>Graphing continuous-continuous interaction for a specified range of x-axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-continuous-continuous-interaction-for-a-specified-range/m-p/548372#M17977</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I ran the following codes to graphically show the predicted probabilities of&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;y&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;EM&gt;binary&lt;/EM&gt;&lt;SPAN&gt;) vs.&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;x1&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;EM&gt;continuous&lt;/EM&gt;&lt;SPAN&gt;) at different values of&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;x2&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;EM&gt;continuous&lt;/EM&gt;&lt;SPAN&gt;).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=data;
   model y(event='1') = x1 | x2;
   store logiMod;
run;

title "Predicted probabilities";
proc plm source=logiMod;
   effectplot slicefit(x=x1 sliceby=x2=0 to 30 by 5);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;These codes give&amp;nbsp;me the graph for the whole range of&amp;nbsp;&lt;CODE&gt;x1. But I want to show this graph for a specified range of x1 (say, for 0-20 with an increment of 2 for grids) without changing my main model. How can I get that? Can anyone demostrate any alternative way to produce a similar graph if such an option is not available in proc plm?&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 03:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-continuous-continuous-interaction-for-a-specified-range/m-p/548372#M17977</guid>
      <dc:creator>Blain</dc:creator>
      <dc:date>2019-04-04T03:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing continuous-continuous interaction for a specified range of x-axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-continuous-continuous-interaction-for-a-specified-range/m-p/548406#M17979</link>
      <description>&lt;P&gt;For more flexibility, you could skip proc plm and do your own scoring. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data heart;
set sashelp.heart;
alive = missing(ageAtDeath);
run;

data graphValues;
do smoking = 0, 10, 20, 30;
    do systolic = 120 to 180;
        output;
        end;
    end;
label 
    smoking="Cigarettes per day" 
    systolic="Systolic blood pressure";
run;

proc logistic data=heart;
model alive = systolic smoking;
score data=graphValues out=graphScores;
run;

proc sgplot data=graphScores;
series x=systolic y=p_0 / group=smoking lineattrs=(pattern=solid);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28433iEED145A37FA97611/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot2.png" alt="SGPlot2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 04:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-continuous-continuous-interaction-for-a-specified-range/m-p/548406#M17979</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-04-04T04:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing continuous-continuous interaction for a specified range of x-axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Graphing-continuous-continuous-interaction-for-a-specified-range/m-p/548616#M17981</link>
      <description>Thanks!</description>
      <pubDate>Thu, 04 Apr 2019 18:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Graphing-continuous-continuous-interaction-for-a-specified-range/m-p/548616#M17981</guid>
      <dc:creator>Blain</dc:creator>
      <dc:date>2019-04-04T18:28:50Z</dc:date>
    </item>
  </channel>
</rss>

