<?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 Perform Contrasts with PROC GLM in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-Contrasts-with-PROC-GLM/m-p/733507#M35751</link>
    <description>&lt;P&gt;I am trying to compare the lifespan of mice in different dietary groups:&lt;BR /&gt;1. NP: nonpurified, standard diet with no restriction&lt;/P&gt;
&lt;P&gt;2. N/N85: normal diet begore and after (85 kcal/wk) --&amp;gt; control group&lt;/P&gt;
&lt;P&gt;3. N/R50: normal diet before weaning, reduced calories (50 kcal/wk) after&lt;/P&gt;
&lt;P&gt;4. R/R50: reduced calorie (50 kcal/wk) before and after weaning&lt;/P&gt;
&lt;P&gt;5. N/R50 lopro: normal diet before weaning, reduced calories (50 kcal/wk) after with decreased protein content&lt;/P&gt;
&lt;P&gt;6. N/R40: normal diet before weaning, severely reduced calories (40 kcal/wk) after&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;lifetime:&lt;/EM&gt; numeric (continuous)&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;diet1:&lt;/EM&gt;&amp;nbsp;numeric --&amp;gt; use as factor 1 through 6&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         PROC GLM data = DATA.Caloric;
 74          class diet1;
 75          model lifetime = diet1;
 76          lsmeans diet1 / adjust = Tukey cl;
 77          contrast '85 kcal/wk vs. 50 kcal/wk' diet1 0 3 -1 -1 -1 0;
 78          contrast 'Pre-Weaning vs. No Pre-Weaning' diet1 -1, -1, -1, 5, -1, -1;
                                                                &lt;FONT color="#FF0000"&gt; __      _
                                                                 22      22
                                                                 200     200
 ERROR: Variable NAME not found.&lt;/FONT&gt;
 78          contrast 'Pre-Weaning vs. No Pre-Weaning' diet1 -1, -1, -1, 5, -1, -1;
                                                                               &lt;FONT color="#FF0000"&gt; __
                                                                                22
 ERROR 22-322: Syntax error, expecting one of the following: a name, INTERCEPT.  
 
 ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;
 
 79          contrast '50 kcal/wk vs. 40 kcal/wk' diet1 0 0 1 1 1 -3;
&lt;FONT color="#0000FF"&gt; NOTE: The previous statement has been deleted.&lt;/FONT&gt;
 80          contrast 'Reduced Protein vs. Normal Protein' diet1 -1, -1, -1, -1, 5, -1;
                                                                    &lt;FONT color="#FF0000"&gt; __      __
                                                                     22      22
                                                                     200     200
 ERROR: Variable NAME not found.
 ERROR 22-322: Syntax error, expecting one of the following: a name, INTERCEPT.  
 ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;
 81          contrast 'Lab Mice vs. Control Mice' diet1 -1 5 -1 -1 -1 -1;
&lt;FONT color="#0000FF"&gt; NOTE: The previous statement has been deleted.&lt;/FONT&gt;
 82         
 83          estimate '85 kcal/wk vs. 50 kcal/wk' diet1 0 3 -1 -1 -1 0 / divisor = 3;
 84          estimate 'Pre-Weaning vs. No Pre-Weaning' diet1 -1, -1, -1, 5, -1, -1 / divisor = 5;
                                                              &lt;FONT color="#FF0000"&gt; _
                                                               22
                                                               76&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt; NOTE: The previous statement has been deleted.&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt; ERROR 22-322: Syntax error, expecting one of the following: a name, a numeric constant, a datetime constant, ;, +, -, /, 
               INTERCEPT.  
 ERROR 76-322: Syntax error, statement will be ignored.&lt;/FONT&gt;
 85          estimate '50 kcal/wk vs. 40 kcal/wk' diet1 0 0 1 1 1 -3 / divisor = 3;
 86          estimate 'Reduced Protein vs. Normal Protein' diet1 -1, -1, -1, -1, 5, -1 / divisor = 5;
                                                               &lt;FONT color="#FF0000"&gt;    _
                                                                   22
                                                                   76&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt; NOTE: The previous statement has been deleted.
&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt; ERROR 22-322: Syntax error, expecting one of the following: a name, a numeric constant, a datetime constant, ;, +, -, /, 
               INTERCEPT.  
 ERROR 76-322: Syntax error, statement will be ignored.&lt;/FONT&gt;
 87          estimate 'Lab Mice vs. Control Mice' diet1 -1 5 -1 -1 -1 -1 / divisor = 5;
 88         RUN;
 
 89         
 90         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 102   &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I am not sure what these errors are referring to. I appreciate any feedback. Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 20:33:59 GMT</pubDate>
    <dc:creator>amarikow57</dc:creator>
    <dc:date>2021-04-13T20:33:59Z</dc:date>
    <item>
      <title>Perform Contrasts with PROC GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-Contrasts-with-PROC-GLM/m-p/733507#M35751</link>
      <description>&lt;P&gt;I am trying to compare the lifespan of mice in different dietary groups:&lt;BR /&gt;1. NP: nonpurified, standard diet with no restriction&lt;/P&gt;
&lt;P&gt;2. N/N85: normal diet begore and after (85 kcal/wk) --&amp;gt; control group&lt;/P&gt;
&lt;P&gt;3. N/R50: normal diet before weaning, reduced calories (50 kcal/wk) after&lt;/P&gt;
&lt;P&gt;4. R/R50: reduced calorie (50 kcal/wk) before and after weaning&lt;/P&gt;
&lt;P&gt;5. N/R50 lopro: normal diet before weaning, reduced calories (50 kcal/wk) after with decreased protein content&lt;/P&gt;
&lt;P&gt;6. N/R40: normal diet before weaning, severely reduced calories (40 kcal/wk) after&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;lifetime:&lt;/EM&gt; numeric (continuous)&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;diet1:&lt;/EM&gt;&amp;nbsp;numeric --&amp;gt; use as factor 1 through 6&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         PROC GLM data = DATA.Caloric;
 74          class diet1;
 75          model lifetime = diet1;
 76          lsmeans diet1 / adjust = Tukey cl;
 77          contrast '85 kcal/wk vs. 50 kcal/wk' diet1 0 3 -1 -1 -1 0;
 78          contrast 'Pre-Weaning vs. No Pre-Weaning' diet1 -1, -1, -1, 5, -1, -1;
                                                                &lt;FONT color="#FF0000"&gt; __      _
                                                                 22      22
                                                                 200     200
 ERROR: Variable NAME not found.&lt;/FONT&gt;
 78          contrast 'Pre-Weaning vs. No Pre-Weaning' diet1 -1, -1, -1, 5, -1, -1;
                                                                               &lt;FONT color="#FF0000"&gt; __
                                                                                22
 ERROR 22-322: Syntax error, expecting one of the following: a name, INTERCEPT.  
 
 ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;
 
 79          contrast '50 kcal/wk vs. 40 kcal/wk' diet1 0 0 1 1 1 -3;
&lt;FONT color="#0000FF"&gt; NOTE: The previous statement has been deleted.&lt;/FONT&gt;
 80          contrast 'Reduced Protein vs. Normal Protein' diet1 -1, -1, -1, -1, 5, -1;
                                                                    &lt;FONT color="#FF0000"&gt; __      __
                                                                     22      22
                                                                     200     200
 ERROR: Variable NAME not found.
 ERROR 22-322: Syntax error, expecting one of the following: a name, INTERCEPT.  
 ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;
 81          contrast 'Lab Mice vs. Control Mice' diet1 -1 5 -1 -1 -1 -1;
&lt;FONT color="#0000FF"&gt; NOTE: The previous statement has been deleted.&lt;/FONT&gt;
 82         
 83          estimate '85 kcal/wk vs. 50 kcal/wk' diet1 0 3 -1 -1 -1 0 / divisor = 3;
 84          estimate 'Pre-Weaning vs. No Pre-Weaning' diet1 -1, -1, -1, 5, -1, -1 / divisor = 5;
                                                              &lt;FONT color="#FF0000"&gt; _
                                                               22
                                                               76&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt; NOTE: The previous statement has been deleted.&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt; ERROR 22-322: Syntax error, expecting one of the following: a name, a numeric constant, a datetime constant, ;, +, -, /, 
               INTERCEPT.  
 ERROR 76-322: Syntax error, statement will be ignored.&lt;/FONT&gt;
 85          estimate '50 kcal/wk vs. 40 kcal/wk' diet1 0 0 1 1 1 -3 / divisor = 3;
 86          estimate 'Reduced Protein vs. Normal Protein' diet1 -1, -1, -1, -1, 5, -1 / divisor = 5;
                                                               &lt;FONT color="#FF0000"&gt;    _
                                                                   22
                                                                   76&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt; NOTE: The previous statement has been deleted.
&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt; ERROR 22-322: Syntax error, expecting one of the following: a name, a numeric constant, a datetime constant, ;, +, -, /, 
               INTERCEPT.  
 ERROR 76-322: Syntax error, statement will be ignored.&lt;/FONT&gt;
 87          estimate 'Lab Mice vs. Control Mice' diet1 -1 5 -1 -1 -1 -1 / divisor = 5;
 88         RUN;
 
 89         
 90         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 102   &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I am not sure what these errors are referring to. I appreciate any feedback. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 20:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-Contrasts-with-PROC-GLM/m-p/733507#M35751</guid>
      <dc:creator>amarikow57</dc:creator>
      <dc:date>2021-04-13T20:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Contrasts with PROC GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Perform-Contrasts-with-PROC-GLM/m-p/733508#M35752</link>
      <description>&lt;P&gt;Nevermind... It's the commas. Saw the mistake as it was posting.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 20:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Perform-Contrasts-with-PROC-GLM/m-p/733508#M35752</guid>
      <dc:creator>amarikow57</dc:creator>
      <dc:date>2021-04-13T20:35:31Z</dc:date>
    </item>
  </channel>
</rss>

