<?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: Error in estimate and contrast statements - need help interpreting error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-in-estimate-and-contrast-statements-need-help-interpreting/m-p/97201#M257802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the variables are there but they only define the main effects effect for each variable.&amp;nbsp; You need to include the interaction effect waist*diabetes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use vertical bar &lt;BR /&gt;glucose = waist | diabetes;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2013 19:17:55 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2013-02-04T19:17:55Z</dc:date>
    <item>
      <title>Error in estimate and contrast statements - need help interpreting error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-estimate-and-contrast-statements-need-help-interpreting/m-p/97200#M257801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a student and keep getting an error when setting up estimate and contrast statements. I'm trying to &lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman';"&gt;build a model for the association between mean glucose and exercise status, and control for possible confounding. Below is the log, and I keep getting this error message "Effects used in the ESTIMATE statement must have appeared previously in the MODEL statement." I don't understand why I keep getting this - the variables 'waist' and 'diabetes' are in the model statement. Does anyone know what I'm doing wrong/can help me out? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;89&amp;nbsp;&amp;nbsp; proc glm data=testdata1;&lt;/P&gt;&lt;P&gt;90&amp;nbsp;&amp;nbsp; class diabetes;&lt;/P&gt;&lt;P&gt;91&amp;nbsp;&amp;nbsp; model glucose = waist diabetes/solution;&lt;/P&gt;&lt;P&gt;92&amp;nbsp;&amp;nbsp; estimate 'diabetes: waist = 80' diabetes 1 -1 waist*diabetes 80 -80;&lt;/P&gt;&lt;P&gt;ERROR: Effects used in the ESTIMATE statement must have appeared previously in the MODEL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement.&lt;/P&gt;&lt;P&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;93&amp;nbsp;&amp;nbsp; estimate 'diabetes: waist = 110' diabetes 1 -1 waist*diabetes 110 -110;&lt;/P&gt;&lt;P&gt;ERROR: Effects used in the ESTIMATE statement must have appeared previously in the MODEL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement.&lt;/P&gt;&lt;P&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;94&amp;nbsp;&amp;nbsp; estimate 'diabetes: waist = 140' diabetes 1 -1 waist*diabetes 140 -140;&lt;/P&gt;&lt;P&gt;ERROR: Effects used in the ESTIMATE statement must have appeared previously in the MODEL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement.&lt;/P&gt;&lt;P&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;95&amp;nbsp;&amp;nbsp; contrast '80 vs. 90'&amp;nbsp; diabetes 1 -1 waist*diabetes 80 -80, diabetes 1 -1 waist*diabetes 90&lt;/P&gt;&lt;P&gt;95 ! -90;&lt;/P&gt;&lt;P&gt;ERROR: Effects used in the CONTRAST statement must have appeared previously in the MODEL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 19:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-estimate-and-contrast-statements-need-help-interpreting/m-p/97200#M257801</guid>
      <dc:creator>SASstudent2012</dc:creator>
      <dc:date>2013-02-04T19:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error in estimate and contrast statements - need help interpreting error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-estimate-and-contrast-statements-need-help-interpreting/m-p/97201#M257802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the variables are there but they only define the main effects effect for each variable.&amp;nbsp; You need to include the interaction effect waist*diabetes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use vertical bar &lt;BR /&gt;glucose = waist | diabetes;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 19:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-estimate-and-contrast-statements-need-help-interpreting/m-p/97201#M257802</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-02-04T19:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in estimate and contrast statements - need help interpreting error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-estimate-and-contrast-statements-need-help-interpreting/m-p/97202#M257803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I updated that line to model glucose = waist exercise waist*exercise/solution;&lt;/P&gt;&lt;P&gt;It worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 19:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-estimate-and-contrast-statements-need-help-interpreting/m-p/97202#M257803</guid>
      <dc:creator>SASstudent2012</dc:creator>
      <dc:date>2013-02-04T19:29:06Z</dc:date>
    </item>
  </channel>
</rss>

