<?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 PROC RSREG [alternative procedure may be required]:  plot response surface using ONLY linear terms in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-RSREG-alternative-procedure-may-be-required-plot-response/m-p/233003#M54787</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see my example syntax below. &amp;nbsp;In the case below, my quadratic and interaction terms are not signficant, but my linear terms are (for A and AM, the two variables compared on the response surface). &amp;nbsp;As such, I am interpretting only the linear terms. &amp;nbsp;I would like to plot a response surface using only the linear terms (i.e. an entirely flat 3-D surface). &amp;nbsp;I can do this in other software using a 3D function plot. &amp;nbsp;Is there a way to do this within PROC RSREG? &amp;nbsp;If not, what is the best way to plot the linear 3-D response surface in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
	title "M &amp;amp; Job Sat &amp;amp; A";
		proc rsreg data=pt8
			plots=(surface(3d rotate=-33 fill=pred));
			model jobSat= jz lnWg iq I IM R RM S SM E EM C CM A AM /lackfit /covar=13 ; where sex=0;
run;
ods graphics off;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Nov 2015 00:39:59 GMT</pubDate>
    <dc:creator>jpwiega</dc:creator>
    <dc:date>2015-11-04T00:39:59Z</dc:date>
    <item>
      <title>PROC RSREG [alternative procedure may be required]:  plot response surface using ONLY linear terms</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-RSREG-alternative-procedure-may-be-required-plot-response/m-p/233003#M54787</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see my example syntax below. &amp;nbsp;In the case below, my quadratic and interaction terms are not signficant, but my linear terms are (for A and AM, the two variables compared on the response surface). &amp;nbsp;As such, I am interpretting only the linear terms. &amp;nbsp;I would like to plot a response surface using only the linear terms (i.e. an entirely flat 3-D surface). &amp;nbsp;I can do this in other software using a 3D function plot. &amp;nbsp;Is there a way to do this within PROC RSREG? &amp;nbsp;If not, what is the best way to plot the linear 3-D response surface in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
	title "M &amp;amp; Job Sat &amp;amp; A";
		proc rsreg data=pt8
			plots=(surface(3d rotate=-33 fill=pred));
			model jobSat= jz lnWg iq I IM R RM S SM E EM C CM A AM /lackfit /covar=13 ; where sex=0;
run;
ods graphics off;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Nov 2015 00:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-RSREG-alternative-procedure-may-be-required-plot-response/m-p/233003#M54787</guid>
      <dc:creator>jpwiega</dc:creator>
      <dc:date>2015-11-04T00:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC RSREG [alternative procedure may be required]:  plot response surface using ONLY linear ter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-RSREG-alternative-procedure-may-be-required-plot-response/m-p/233087#M54795</link>
      <description>&lt;P&gt;By experimentation, it looks like RSREG needs at least two quadratic terms to plot a surface. It looks like you have 15 covariates, and you are using COVAR=13 to set the first 13 to linear.&amp;nbsp;Therefore I would have guessed that the surface would appear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_rsreg_gettingstarted01.htm#statug.rsreg.rsrgd" target="_self"&gt;An example in the RSREG doc &lt;/A&gt;shows how to &lt;A href="http://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_self"&gt;construct scoring data by using the missing value trick.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Then use the OUT= and PREDICT options to write the predicted values to a SAS data set on a uniform grid of points.You can then &lt;A href="http://blogs.sas.com/content/iml/2015/10/12/create-surface-plot-sas.html" target="_self"&gt;construct a surface plot &lt;/A&gt;by following the steps on my blog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;you want to&amp;nbsp;visualize linear surface (or even a quadratic on), I recommend &lt;A href="http://blogs.sas.com/content/iml/2012/07/02/create-a-contour-plot-in-sas.html" target="_self"&gt;using a contour plot instead&lt;/A&gt;. It will be much easier to estimate the height of the surface if you can see the&amp;nbsp;contours .&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 15:02:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-RSREG-alternative-procedure-may-be-required-plot-response/m-p/233087#M54795</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-11-04T15:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC RSREG [alternative procedure may be required]:  plot response surface using ONLY linear ter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-RSREG-alternative-procedure-may-be-required-plot-response/m-p/233117#M54799</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS﻿&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need at least two variables not set as covariates to get a plot (i.e. in my case, setting covariates to 15 will not plot anything at all). &amp;nbsp;Unfortunately, rsreg ONLY produces a quadratic plot(s) with the&amp;nbsp;two (or more) variables you don't set as covariates (the final variables in the list)--it will not plot a surface using the linear results of the two terms as I desire.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To help visualize, I've attached&amp;nbsp;the resreg quadratic output ("rsreg.png") and the corresponding linear plot (using SYSTAT; "systat.png"). &amp;nbsp;I'd like to be able to make the linear plot in SAS as well. &amp;nbsp;Additional thoughts on how to accomplish this?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12055i3F499976D1ECB86B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="rsreg.png" title="rsreg.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12056i855C8465CA5336CB/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="systat.png" title="systat.png" /&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-RSREG-alternative-procedure-may-be-required-plot-response/m-p/233117#M54799</guid>
      <dc:creator>jpwiega</dc:creator>
      <dc:date>2015-11-04T16:56:21Z</dc:date>
    </item>
  </channel>
</rss>

