<?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 I need help reproducing a response surface plot. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/I-need-help-reproducing-a-response-surface-plot/m-p/393390#M13501</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please I need help reproducing a response surface plot. Please find attached below my data and SAS codes. I have attached the plot I would like to reproduce and the plot I get.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title ’Response Surface with a Simple Optimum’;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; RSM;&lt;/P&gt;&lt;P&gt;input Dose Time P_DTTAO;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;0 7 0.7&lt;/P&gt;&lt;P&gt;0 7 0.4&lt;/P&gt;&lt;P&gt;0 7 1.2&lt;/P&gt;&lt;P&gt;0 7 1.1&lt;/P&gt;&lt;P&gt;0 7 0&lt;/P&gt;&lt;P&gt;0 7 0.4&lt;/P&gt;&lt;P&gt;8 7 1.9&lt;/P&gt;&lt;P&gt;8 7 2.3&lt;/P&gt;&lt;P&gt;8 7 0.7&lt;/P&gt;&lt;P&gt;8 7 2.1&lt;/P&gt;&lt;P&gt;8 7 3.2&lt;/P&gt;&lt;P&gt;8 7 0.2&lt;/P&gt;&lt;P&gt;12 2 3.3&lt;/P&gt;&lt;P&gt;12 2 2.5&lt;/P&gt;&lt;P&gt;12 2 2.6&lt;/P&gt;&lt;P&gt;12 2 2.6&lt;/P&gt;&lt;P&gt;12 2 3.0&lt;/P&gt;&lt;P&gt;12 2 1.0&lt;/P&gt;&lt;P&gt;12 12 0.4&lt;/P&gt;&lt;P&gt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ONG&gt;;&lt;/P&gt;&lt;P&gt;do Dose= &lt;STRONG&gt;0&lt;/STRONG&gt; to &lt;STRONG&gt;16&lt;/STRONG&gt; by &lt;STRONG&gt;.05&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; rsm2;&lt;/P&gt;&lt;P&gt;set rsm rsm2;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;rsreg&lt;/STRONG&gt; data=rsm2 out=predict noprint;&lt;/P&gt;&lt;P&gt;model P_DTTAO=Dose Time/ predict;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / attrpriority=none width=&lt;STRONG&gt;8&lt;/STRONG&gt;in noborder;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS RTF FILE='/folders/myfolders/ODS Graphics/drug plot.rtf';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; plot;&lt;/P&gt;&lt;P&gt;set predict;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;g3d&lt;/STRONG&gt; data=predict;&lt;/P&gt;&lt;P&gt;plot Time*Dose=P_DTTAO / rotate=&lt;STRONG&gt;38&lt;/STRONG&gt; tilt=&lt;STRONG&gt;75&lt;/STRONG&gt; xticknum=&lt;STRONG&gt;6&lt;/STRONG&gt; yticknum=&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;zmax=&lt;STRONG&gt;6&lt;/STRONG&gt; zmin=-&lt;STRONG&gt;2.17&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;ODS RTF CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2017 22:29:16 GMT</pubDate>
    <dc:creator>Uche_Okoro</dc:creator>
    <dc:date>2017-09-05T22:29:16Z</dc:date>
    <item>
      <title>I need help reproducing a response surface plot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/I-need-help-reproducing-a-response-surface-plot/m-p/393390#M13501</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please I need help reproducing a response surface plot. Please find attached below my data and SAS codes. I have attached the plot I would like to reproduce and the plot I get.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title ’Response Surface with a Simple Optimum’;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; RSM;&lt;/P&gt;&lt;P&gt;input Dose Time P_DTTAO;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;0 7 0.7&lt;/P&gt;&lt;P&gt;0 7 0.4&lt;/P&gt;&lt;P&gt;0 7 1.2&lt;/P&gt;&lt;P&gt;0 7 1.1&lt;/P&gt;&lt;P&gt;0 7 0&lt;/P&gt;&lt;P&gt;0 7 0.4&lt;/P&gt;&lt;P&gt;8 7 1.9&lt;/P&gt;&lt;P&gt;8 7 2.3&lt;/P&gt;&lt;P&gt;8 7 0.7&lt;/P&gt;&lt;P&gt;8 7 2.1&lt;/P&gt;&lt;P&gt;8 7 3.2&lt;/P&gt;&lt;P&gt;8 7 0.2&lt;/P&gt;&lt;P&gt;12 2 3.3&lt;/P&gt;&lt;P&gt;12 2 2.5&lt;/P&gt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;&lt;P&gt;Odor = &lt;STRONG&gt;.&lt;/STRONG&gt; ;&lt;/P&gt;&lt;P&gt;do Time = &lt;STRONG&gt;0&lt;/STRONG&gt; to &lt;STRONG&gt;12&lt;/STRONG&gt; by &lt;STRONG&gt;2&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;do Dose= &lt;STRONG&gt;0&lt;/STRONG&gt; to &lt;STRONG&gt;16&lt;/STRONG&gt; by &lt;STRONG&gt;.05&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; rsm2;&lt;/P&gt;&lt;P&gt;set rsm rsm2;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;rsreg&lt;/STRONG&gt; data=rsm2 out=predict noprint;&lt;/P&gt;&lt;P&gt;model P_DTTAO=Dose Time/ predict;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / attrpriority=none width=&lt;STRONG&gt;8&lt;/STRONG&gt;in noborder;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS RTF FILE='/folders/myfolders/ODS Graphics/drug plot.rtf';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; plot;&lt;/P&gt;&lt;P&gt;set predict;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;g3d&lt;/STRONG&gt; data=predict;&lt;/P&gt;&lt;P&gt;plot Time*Dose=P_DTTAO / rotate=&lt;STRONG&gt;38&lt;/STRONG&gt; tilt=&lt;STRONG&gt;75&lt;/STRONG&gt; xticknum=&lt;STRONG&gt;6&lt;/STRONG&gt; yticknum=&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;zmax=&lt;STRONG&gt;6&lt;/STRONG&gt; zmin=-&lt;STRONG&gt;2.17&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;ODS RTF CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 22:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/I-need-help-reproducing-a-response-surface-plot/m-p/393390#M13501</guid>
      <dc:creator>Uche_Okoro</dc:creator>
      <dc:date>2017-09-05T22:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: I need help reproducing a response surface plot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/I-need-help-reproducing-a-response-surface-plot/m-p/393574#M13507</link>
      <description>&lt;P&gt;The simplest way to get a 3D plot of the response surface is to let PROC RSREG generate it automatically through ODS graphics:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc rsreg data=rsm2 out=predict plots=surface(3D);
   model P_DTTAO=Dose Time/ predict;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If for some reason that is not sufficient, then use the following code to produce the plot by using PROC G3D. Note that I've used a grid that is more balanced than yours in terms of the X and Y&amp;nbsp;locations of the grid points:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data rsm2;
P_DTTAO = . ;
do Time = 0 to 12;
   do Dose= 0 to 16 by .1;
      output;
   end;
end;
run;
data rsm2;
set rsm rsm2;
run;
proc rsreg data=rsm2 out=predict noprint;
model P_DTTAO=Dose Time/ predict;
run;

proc g3d data=predict;
plot Time*Dose=P_DTTAO / rotate=38 tilt=75 xticknum=6 yticknum=4
zmax=6 zmin=-2.17;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Sep 2017 14:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/I-need-help-reproducing-a-response-surface-plot/m-p/393574#M13507</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-09-06T14:25:17Z</dc:date>
    </item>
  </channel>
</rss>

