<?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 plm: effectplot slicefit in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/616465#M19302</link>
    <description>&lt;P&gt;As you suspected, you cannot use the EFFECTPLOT statement in PROC PLM to create that graph. However, &lt;A href="https://blogs.sas.com/content/iml/2017/12/20/create-sliced-fit-plot-sas.html" target="_self"&gt;you can create the graph manually by creating a scoring data set and using the SCORE statement in PROC LOGISTIC&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 13:47:59 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-01-10T13:47:59Z</dc:date>
    <item>
      <title>Proc plm: effectplot slicefit</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/476572#M16453</link>
      <description>&lt;P&gt;The sliceby function in Proc plm effectplot automatically produces 5 equally spaced category for the continuous variable, I am wondering if there&amp;nbsp;way to change the 5 groups to other number of group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 19:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/476572#M16453</guid>
      <dc:creator>sasbee</dc:creator>
      <dc:date>2018-07-09T19:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc plm: effectplot slicefit</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/476582#M16456</link>
      <description>&lt;TABLE class="AAtabular"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH style="text-align: left;" colspan="2"&gt;
&lt;P&gt;&lt;SPAN class=" AAkeyword"&gt;SLICEFIT&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="border-bottom-color: black; border-bottom-width: 1px; border-bottom-style: solid;"&gt;
&lt;P&gt;Displays a curve of predicted values versus a continuous variable grouped by the levels of a CLASS effect.&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 09 Jul 2018 20:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/476582#M16456</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-07-09T20:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc plm: effectplot slicefit</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/476885#M16470</link>
      <description>&lt;P&gt;Sure. Look at the examples in the article &lt;A href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_self"&gt;"Use the EFFECTPLOT statement to visualize regression models in SAS."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In that article is the following code that plots the&amp;nbsp;CigsPerDay variable at the five levels {0, 15, 30, 45, 60}.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc plm source=logiModel;
   effectplot slicefit(x=MomAge sliceby=CigsPerDay);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To override the default, list the levels of the CigsPerDay variable. For example, use either of the following syntaxes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc plm source=logiModel;
   effectplot slicefit(x=MomAge sliceby=CigsPerDay=5 25 45); /* three values */
run;

proc plm source=logiModel;
   effectplot slicefit(x=MomAge sliceby=CigsPerDay=(0 to 60 by 5));/* 13 values */
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 17:46:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/476885#M16470</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-07-10T17:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc plm: effectplot slicefit</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/616251#M19301</link>
      <description>&lt;P&gt;Hi Rick: this may be a stupid question but when I run the following code:&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc logistic data=mapmerge plots=effect;&lt;BR /&gt;class Shock_Vasopressor__Use(ref='No') respmechvent(ref='No') Renal_Failure_HD_Use (ref='No') Grade_3_4_Hepenceph(ref='Yes')/param=ref;&lt;/P&gt;&lt;P&gt;model ICU_DEATH(EVENT='Yes')=twamap55 meld_na_score respmechvent Renal_Failure_HD_Use Shock_Vasopressor__Use albumin wbc Grade_3_4_Hepenceph/clodds=wald;&lt;BR /&gt;UNITS twamap55= -1 ;&lt;BR /&gt;store adjMort;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS produces a default effects plot (see attachment)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to understand how SAS produces this plot and if I can reproduce it using Proc plm so I can create my own combinations if needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I am trying the following code but I cant seem to slice by multiple categorical predictors ( if I assume thats what SAS is doing to produce the plot) the at values work but I dont know how to mimic whats labelled on the xaxis&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;/*test plm*/&lt;BR /&gt;proc plm restore=adjMort;&lt;BR /&gt;effectplot slicefit (x=twamap55 sliceby=Shock_Vasopressor__Use*respmechvent*Renal_Failure_HD_Use) / at( Grade_3_4_Hepenceph='Yes' meld_na_score=mean albumin=mean wbc=mean);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I just use one var in sliceby I get a plot but not the default one SAS produces.&lt;/P&gt;&lt;P&gt;Thanks Rick and sorry for the long winded question&lt;/P&gt;&lt;P&gt;Francis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/616251#M19301</guid>
      <dc:creator>Ameribrit</dc:creator>
      <dc:date>2020-01-09T16:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc plm: effectplot slicefit</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/616465#M19302</link>
      <description>&lt;P&gt;As you suspected, you cannot use the EFFECTPLOT statement in PROC PLM to create that graph. However, &lt;A href="https://blogs.sas.com/content/iml/2017/12/20/create-sliced-fit-plot-sas.html" target="_self"&gt;you can create the graph manually by creating a scoring data set and using the SCORE statement in PROC LOGISTIC&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 13:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-plm-effectplot-slicefit/m-p/616465#M19302</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-10T13:47:59Z</dc:date>
    </item>
  </channel>
</rss>

