<?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 LOGISTIC plots in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896679#M44449</link>
    <description>&lt;P&gt;When the admittedly limited options of PLOTS options in an analysis procedure do not create the graphs you want then the approach means export the needed data from the procedure and write your own plot(s) with Proc Sgplot or Sgpanel or even the Graph Template Language and Proc Sgrender.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 14:38:29 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-10-02T14:38:29Z</dc:date>
    <item>
      <title>PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896591#M44436</link>
      <description>&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running this PROC LOGISTIC:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=expi2 plots=effect ( clband=yes SHOWOBS=NO ) ;&lt;BR /&gt;model criterion (event= '1') = predictor1 predictor2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the PLOTS=EFFECT option gives me the plot for predictor1, but not for predictor2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to obtain a plot with both predictors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684" target="_blank"&gt;@Rick_SAS&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; syntax for plotting different groups in the same graph, but I have not found a solution for what I need.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The datafile is attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any suggestions you may have.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eman&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 21:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896591#M44436</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2023-10-01T21:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896594#M44437</link>
      <description>&lt;P&gt;Of course, I can use the store option and PLM, but that still gives me two separate plots, one for each predictor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=expi2 plots=effect ( clband=yes SHOWOBS=NO ) ;&lt;BR /&gt;model criterion (event= '1') = predictor1 predictor2 ;&lt;/P&gt;&lt;P&gt;store pip;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc plm restore=pip;&lt;BR /&gt;effectplot fit (x=predictor1 );&lt;BR /&gt;effectplot fit (x=predictor2 );&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 22:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896594#M44437</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2023-10-01T22:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896635#M44440</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=expi2 plots=effect ( clband=yes SHOWOBS=NO x=(predictor1 predictor2)) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;By the way, you did not attach the data and in fact, you should NOT attach data. Data should be provided as working SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;examples and instructions&lt;/A&gt;) and not via file attachments or screen captures.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 10:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896635#M44440</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-02T10:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896656#M44446</link>
      <description>&lt;P&gt;hello.&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry about the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you suggest produces two separate graphs, one for predictor1 and one for predictor2.&lt;/P&gt;&lt;P&gt;The same results than with proc plm -- but your solution is of course more efficient.&lt;/P&gt;&lt;P&gt;What I would like is to have slopes for both predictors in one graph.&lt;/P&gt;&lt;P&gt;Eman&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 13:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896656#M44446</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2023-10-02T13:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896660#M44447</link>
      <description>&lt;P&gt;I am not aware of any built-in way to have both EFFECT plots on one graph. It doesn't even make sense to do this unless PREDICTOR1 and PREDICTOR2 are on the exact same scale, otherwise you would need two different x-axes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, you can write your own program to put them on the same graph.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 13:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896660#M44447</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-02T13:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896668#M44448</link>
      <description>&lt;P&gt;yes, they are on the exact same scale, that is why I would like to put them on the same graph.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 13:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896668#M44448</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2023-10-02T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896679#M44449</link>
      <description>&lt;P&gt;When the admittedly limited options of PLOTS options in an analysis procedure do not create the graphs you want then the approach means export the needed data from the procedure and write your own plot(s) with Proc Sgplot or Sgpanel or even the Graph Template Language and Proc Sgrender.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 14:38:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896679#M44449</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-02T14:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896692#M44450</link>
      <description>&lt;P&gt;You need to realize that with 2 (or more) x-variables, the only way to do this is to hold X1 constant and then get prediction curve for the X2. And then repeat the process holding the other X2 constant and predict X1. Which may or may not be what you are hoping to get from such a plot. Maybe what you really want is a 3-D plot of probabilities with axes X1 and X2 and predicted probabilities, but I'd have to think of how you could create such a plot. I have done a similar thing using PROC REPORT, showing probabilities in a matrix of X1 and X2, but this can't be called a "plot".&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 15:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896692#M44450</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-02T15:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896696#M44451</link>
      <description>&lt;P&gt;I will look into that, although a 3-D plot might be too complicated to read for my audience.&lt;/P&gt;&lt;P&gt;Yes, what you suggest is what I have in mind. I can reorganise my data and obtain the same through other means.&lt;/P&gt;&lt;P&gt;I was just curious if PROC LOGISTIC could handle it itself, but I guess this is not the case. Admittedly, it is not something that is likely to be useful very often, so I am not surprised that it does not exist as a built-in capability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all for engaging in the discussion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 15:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896696#M44451</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2023-10-02T15:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896700#M44452</link>
      <description>&lt;P&gt;Producing a 3D plot for two continuous variables is very easy - in fact, it is the default of the EFFECTPLOT statement in that situation. The following produces a contour plot that should be pretty straightforward for any audience to understand.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=expi2;
model criterion (event= '1') = predictor1 predictor2 ;
effectplot;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Oct 2023 15:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896700#M44452</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-10-02T15:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896703#M44454</link>
      <description>&lt;P&gt;That is true, it is not that difficult. I will go with this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 15:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896703#M44454</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2023-10-02T15:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896706#M44455</link>
      <description>&lt;P&gt;Sample of a PROC REPORT output for probabilities of two variables, colored (red=high prob, green=low prob) to make it more like a "plot". I have removed the column and row headers for confidentiality. Also, in the real PROC REPORT output, the numbers in the cells are large enough to be readable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_1-1696261656060.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88476iAE8AA9B3D5C334D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaigeMiller_1-1696261656060.png" alt="PaigeMiller_1-1696261656060.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 15:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896706#M44455</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-02T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC plots</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896773#M44461</link>
      <description>&lt;P&gt;This looks awesome indeed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have never used PROC REPORT, but I will look into it.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 19:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-plots/m-p/896773#M44461</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2023-10-02T19:06:58Z</dc:date>
    </item>
  </channel>
</rss>

