<?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: plotting same criterion, two predictors in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734376#M80400</link>
    <description>&lt;P&gt;Read this article to understand why your description will not actually work:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/12/18/visualize-multivariate-regression-models-by-slicing-continuous-variables.html" target="_self"&gt;"Visualize multivariate regression models by slicing continuous variables"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What most people do is to c&lt;SPAN style="font-family: inherit;"&gt;reate a sliced fit plot in which you set the value of one predictors (often to the mean value) and then plot the predicted response as a function of the second predictor. SAS helps with this task: Use&lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_self"&gt;&amp;nbsp;the SLICEFIT option in the EFFECTPLOT statement, which is supported in several regression procedure&lt;/A&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_blank"&gt;s&lt;/A&gt;&lt;SPAN style="font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 17:56:25 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2021-04-15T17:56:25Z</dc:date>
    <item>
      <title>plotting same criterion, two predictors</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734118#M80394</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with three variables, in which I ran a&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;multiple regression model with one criterion/RMET and two predictors LIT and POP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would like a scatter plot + regression line for both predictors, in the same graph.&lt;/P&gt;&lt;P&gt;So far I have been unable to do so using REG or SGPLOT. The latter allows to have grouped data, so that if I wanted to plot, say, the RMET/Literary regression line for men vs. women, I could easily do so, and even color them differently. But that is not what I want.&lt;/P&gt;&lt;P&gt;I would like one graph with RMET in the y axis, and both LIT and POP on the x axis (they are both standardized vars), with say a blue scatter and reg line for LIT and a red scatter and reg line for POP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach the datafile in excel format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eman&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 06:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734118#M80394</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2021-04-15T06:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: plotting same criterion, two predictors</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734289#M80396</link>
      <description>&lt;P&gt;2 predictors and 1 dependent variable is a 3 dimension problem. The predictors are used as pairs, i.e. coordinates from a plane, the result is a third dimension.&lt;/P&gt;
&lt;P&gt;So if you can't draw one by hand and show us what you think you want this to look like you are likely out of luck unless you have access to Proc G3D.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can overlay graphs with two different X variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sgplot data=yourdata;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; scatter x=predictor1 y=result ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; scatter x=predictor2 y=result;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;Or Series or other plots.&lt;/P&gt;
&lt;P&gt;Interpretation? I don't know.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 14:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734289#M80396</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-15T14:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: plotting same criterion, two predictors</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734376#M80400</link>
      <description>&lt;P&gt;Read this article to understand why your description will not actually work:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/12/18/visualize-multivariate-regression-models-by-slicing-continuous-variables.html" target="_self"&gt;"Visualize multivariate regression models by slicing continuous variables"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What most people do is to c&lt;SPAN style="font-family: inherit;"&gt;reate a sliced fit plot in which you set the value of one predictors (often to the mean value) and then plot the predicted response as a function of the second predictor. SAS helps with this task: Use&lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_self"&gt;&amp;nbsp;the SLICEFIT option in the EFFECTPLOT statement, which is supported in several regression procedure&lt;/A&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_blank"&gt;s&lt;/A&gt;&lt;SPAN style="font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 17:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734376#M80400</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-04-15T17:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: plotting same criterion, two predictors</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734383#M80401</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 18:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734383#M80401</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2021-04-15T18:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: plotting same criterion, two predictors</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734388#M80402</link>
      <description>&lt;P&gt;Thank you Rick.&lt;/P&gt;&lt;P&gt;For a simple plot of the two predictors on the same graph, the solution with SGPLOT reported above works. Of course, as noted, this is not the same as reporting the results of a multiple regression, for which I will be reading the documents you shared.&lt;/P&gt;&lt;P&gt;Eman&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 18:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734388#M80402</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2021-04-15T18:08:40Z</dc:date>
    </item>
  </channel>
</rss>

