<?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: Using PROC REG to write prediction equations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-PROC-REG-to-write-prediction-equations/m-p/531259#M145389</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/226541"&gt;@JUMMY&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, I apologize for the mistake. I have corrected it. PROC REG gives the multiple regression line for the data. But I want to come up with two different equations for preference and sweetness when moisture content equals to 4 and when moisture content equals to 10.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;Put that variable in the BY statement too. The BY statement can take multiple variables and will do it by nested groups.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;By make sweetness;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Jan 2019 05:19:43 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-01-30T05:19:43Z</dc:date>
    <item>
      <title>Using PROC REG to write prediction equations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-PROC-REG-to-write-prediction-equations/m-p/531233#M145367</link>
      <description>&lt;P&gt;I have a data of this form:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data brand;
	input preference moisturecontent sweetness @@;
	datalines;
	64 4 2 73 4 4 61 4 2 76 4 4 72 6 2 80 6 4 
	71 6 2 83 6 4 83 8 2 89 8 4 86 8 2 93 8 4
	88 10 2 95 10 4 94 10 2 100 10 4
	;
run;
proc print;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc reg data=brand;&lt;BR /&gt;model preference=moisturecontent sweetness;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So I used PROC REG to write out the prediction equation. How to I write a separate prediction equation between brand liking and sweetness when moisture content equals to 4 and when moisture content equals to 10?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 04:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-PROC-REG-to-write-prediction-equations/m-p/531233#M145367</guid>
      <dc:creator>JUMMY</dc:creator>
      <dc:date>2019-01-30T04:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC REG to write prediction equations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-PROC-REG-to-write-prediction-equations/m-p/531252#M145383</link>
      <description>Your code isn't correct. you can't have 'BY MAKE' since you have no make variable. &lt;BR /&gt;&lt;BR /&gt;It's not quite clear what you question is, can you please clarify in detail?</description>
      <pubDate>Wed, 30 Jan 2019 04:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-PROC-REG-to-write-prediction-equations/m-p/531252#M145383</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-30T04:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC REG to write prediction equations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-PROC-REG-to-write-prediction-equations/m-p/531256#M145387</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, I apologize for the mistake. I have corrected it. PROC REG gives the multiple regression line for the data. But I want to come up with two different equations for preference and sweetness when moisture content equals to 4 and when moisture content equals to 10.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 04:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-PROC-REG-to-write-prediction-equations/m-p/531256#M145387</guid>
      <dc:creator>JUMMY</dc:creator>
      <dc:date>2019-01-30T04:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC REG to write prediction equations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-PROC-REG-to-write-prediction-equations/m-p/531259#M145389</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/226541"&gt;@JUMMY&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, I apologize for the mistake. I have corrected it. PROC REG gives the multiple regression line for the data. But I want to come up with two different equations for preference and sweetness when moisture content equals to 4 and when moisture content equals to 10.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;Put that variable in the BY statement too. The BY statement can take multiple variables and will do it by nested groups.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;By make sweetness;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jan 2019 05:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-PROC-REG-to-write-prediction-equations/m-p/531259#M145389</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-30T05:19:43Z</dc:date>
    </item>
  </channel>
</rss>

