<?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: What error is in my sas syntax ? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823140#M40769</link>
    <description>Thank you. How do I then handle the model statement?</description>
    <pubDate>Wed, 13 Jul 2022 15:19:41 GMT</pubDate>
    <dc:creator>FestusAdejoro</dc:creator>
    <dc:date>2022-07-13T15:19:41Z</dc:date>
    <item>
      <title>Can I get help fixing this SAS syntax error ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823131#M40764</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Here is the syntax I tried to run. It shows an error message that I need to include '=' somewhere but I can't figure where and why.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Any effort would be appreciated.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt; gain;&lt;/P&gt;
&lt;P&gt;Label v1-v6=gain;&lt;/P&gt;
&lt;P&gt;Input Treatment$ Block$ v1-v6;&lt;/P&gt;
&lt;P&gt;Cards;&lt;/P&gt;
&lt;P&gt;T1&amp;nbsp;&amp;nbsp;&amp;nbsp; R1&amp;nbsp;&amp;nbsp;&amp;nbsp; 51.64304736 28.60340054 49.6&amp;nbsp; 1.530405121 1.6&amp;nbsp;&amp;nbsp; 17.87712534&lt;/P&gt;
&lt;P&gt;T1&amp;nbsp;&amp;nbsp;&amp;nbsp; R2&amp;nbsp;&amp;nbsp;&amp;nbsp; 45.61911079 25.26693844 52.4&amp;nbsp; 1.297341041 1.51&amp;nbsp; 16.73307181&lt;/P&gt;
&lt;P&gt;T1&amp;nbsp;&amp;nbsp;&amp;nbsp; R3&amp;nbsp;&amp;nbsp;&amp;nbsp; 41.32557044 22.88888639 42.45 1.376310403 1.57&amp;nbsp; 14.57890853&lt;/P&gt;
&lt;P&gt;T1&amp;nbsp;&amp;nbsp;&amp;nbsp; R4&amp;nbsp;&amp;nbsp;&amp;nbsp; 36.79370562 20.37883419 47.9&amp;nbsp; 1.11925154&amp;nbsp; 1.57&amp;nbsp; 12.98014917&lt;/P&gt;
&lt;P&gt;T1&amp;nbsp;&amp;nbsp;&amp;nbsp; R5&amp;nbsp;&amp;nbsp;&amp;nbsp; 52.38605109 29.01492609 44&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.698368637 1.52&amp;nbsp; 19.08876716&lt;/P&gt;
&lt;P&gt;T2&amp;nbsp;&amp;nbsp;&amp;nbsp; R1&amp;nbsp;&amp;nbsp;&amp;nbsp; 44.11789607 24.43546453 56.75 1.181806026 1.6&amp;nbsp;&amp;nbsp; 15.27216533&lt;/P&gt;
&lt;P&gt;T2&amp;nbsp;&amp;nbsp;&amp;nbsp; R2&amp;nbsp;&amp;nbsp;&amp;nbsp; 39.24314426 21.73549841 52.85 1.108883343 1.57&amp;nbsp; 13.8442665&lt;/P&gt;
&lt;P&gt;T2&amp;nbsp;&amp;nbsp;&amp;nbsp; R3&amp;nbsp;&amp;nbsp;&amp;nbsp; 39.80628109 22.04740154 48.65 1.196865307 1.57&amp;nbsp; 14.04293092&lt;/P&gt;
&lt;P&gt;T2&amp;nbsp;&amp;nbsp;&amp;nbsp; R4&amp;nbsp;&amp;nbsp;&amp;nbsp; 36.67429515 20.31269662 44.75 1.17401272&amp;nbsp; 1.51&amp;nbsp; 13.45211697&lt;/P&gt;
&lt;P&gt;T2&amp;nbsp;&amp;nbsp;&amp;nbsp; R5&amp;nbsp;&amp;nbsp;&amp;nbsp; 46.42807171 25.71499552 42.6&amp;nbsp; 1.542159358 1.6&amp;nbsp;&amp;nbsp; 16.0718722&lt;/P&gt;
&lt;P&gt;T3&amp;nbsp;&amp;nbsp;&amp;nbsp; R1&amp;nbsp;&amp;nbsp;&amp;nbsp; 41.21164786 22.82578838 48.5&amp;nbsp; 1.241993957 1.61&amp;nbsp; 14.17750831&lt;/P&gt;
&lt;P&gt;T3&amp;nbsp;&amp;nbsp;&amp;nbsp; R2&amp;nbsp;&amp;nbsp;&amp;nbsp; 36.36072575 20.13902075 49&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.087404909 1.56&amp;nbsp; 12.90962869&lt;/P&gt;
&lt;P&gt;T3&amp;nbsp;&amp;nbsp;&amp;nbsp; R3&amp;nbsp;&amp;nbsp;&amp;nbsp; 33.11588878 18.34181133 52.8&amp;nbsp; 0.936411589 1.54&amp;nbsp; 11.91026709&lt;/P&gt;
&lt;P&gt;T3&amp;nbsp;&amp;nbsp;&amp;nbsp; R4&amp;nbsp;&amp;nbsp;&amp;nbsp; 31.33307271 17.35436762 45.75 0.98654175&amp;nbsp; 1.5&amp;nbsp;&amp;nbsp; 11.56957841&lt;/P&gt;
&lt;P&gt;T3&amp;nbsp;&amp;nbsp;&amp;nbsp; R5&amp;nbsp;&amp;nbsp;&amp;nbsp; 46.86195947 25.9553118&amp;nbsp; 45.8&amp;nbsp; 1.474270386 1.53&amp;nbsp; 16.96425608&lt;/P&gt;
&lt;P&gt;T4&amp;nbsp;&amp;nbsp;&amp;nbsp; R1&amp;nbsp;&amp;nbsp;&amp;nbsp; 44.64555998 24.72772038 55.3&amp;nbsp; 1.219383271 1.5&amp;nbsp;&amp;nbsp; 16.48514692&lt;/P&gt;
&lt;P&gt;T4&amp;nbsp;&amp;nbsp;&amp;nbsp; R2&amp;nbsp;&amp;nbsp;&amp;nbsp; 37.12680959 20.56332962 43.55 1.212976306 1.51&amp;nbsp; 13.61809909&lt;/P&gt;
&lt;P&gt;T4&amp;nbsp;&amp;nbsp;&amp;nbsp; R3&amp;nbsp;&amp;nbsp;&amp;nbsp; 35.85177318 19.85712852 50.1&amp;nbsp; 1.054479527 1.55&amp;nbsp; 12.81105066&lt;/P&gt;
&lt;P&gt;T4&amp;nbsp;&amp;nbsp;&amp;nbsp; R4&amp;nbsp;&amp;nbsp;&amp;nbsp; 36.21592279 20.05881912 43.8&amp;nbsp; 1.178147807 1.6&amp;nbsp;&amp;nbsp; 12.53676195&lt;/P&gt;
&lt;P&gt;T4&amp;nbsp;&amp;nbsp;&amp;nbsp; R5&amp;nbsp;&amp;nbsp;&amp;nbsp; 46.70096601 25.86614278 41&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.596407568 1.55&amp;nbsp; 16.68783405&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;univariate&lt;/STRONG&gt; plot normal;&lt;/P&gt;
&lt;P&gt;title 'gain';&lt;/P&gt;
&lt;P&gt;var v1-v6;&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;MIXED&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;CLASS Treatment Block;&lt;/P&gt;
&lt;P&gt;MODEL v1-v6 = Treatment/;&lt;/P&gt;
&lt;P&gt;RANDOM block Treatment*Block;&lt;/P&gt;
&lt;P&gt;LSMEANS Treatment/TDIFF ADJUST= TUKEY;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Run&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 14:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823131#M40764</guid>
      <dc:creator>FestusAdejoro</dc:creator>
      <dc:date>2022-07-13T14:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: What error is in my sas syntax ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823133#M40766</link>
      <description>&lt;P&gt;Here's the log showing the error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;2243  Label v1-v6=gain;
              -
              73
              200
ERROR 73-322: Expecting an =.

ERROR 200-322: The symbol is not recognized and will be ignored.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot use a list of variables, such as v1-v6, in the LABEL statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly in PROC MIXED&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;2303  MODEL v1-v6 = Treatment/;
              -
              73
              200
ERROR 73-322: Expecting an =.
ERROR 200-322: The symbol is not recognized and will be ignored.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can have only one variable to the left of the equal sign in PROC MIXED.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 14:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823133#M40766</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-13T14:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: What error is in my sas syntax ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823134#M40767</link>
      <description>&lt;P&gt;If you have a syntax error the LOG will show you. If you do not understand what the log tells you then copy the text of the log including the entire procedure or data step code plus all the notes, messages, warnings or errors. The on the forum open a text box using the &amp;lt;/&amp;gt; icon above the message window and paste the text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have at least one error with the LABEL statement.&lt;/P&gt;
&lt;PRE&gt;Label v1-v6=gain;&lt;/PRE&gt;
&lt;P&gt;Is not valid. the structure of a label statement is&lt;/P&gt;
&lt;P&gt;Label&amp;nbsp; variablename="quoted text for the label". You can have multiple variables but each must have it's own variablename='text' component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 14:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823134#M40767</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-13T14:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: What error is in my sas syntax ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823136#M40768</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;attrib a1-a6 label='Gain';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can use a SAS-Variable-list in an ATTRIB statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MIXED allows only 1 dependent variable.&amp;nbsp; You might consider transposing V1-V6 to rows and using a BY statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 15:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823136#M40768</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2022-07-13T15:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: What error is in my sas syntax ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823140#M40769</link>
      <description>Thank you. How do I then handle the model statement?</description>
      <pubDate>Wed, 13 Jul 2022 15:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823140#M40769</guid>
      <dc:creator>FestusAdejoro</dc:creator>
      <dc:date>2022-07-13T15:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: What error is in my sas syntax ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823143#M40770</link>
      <description>&lt;P&gt;If you take the transpose route, you will have a column that identifies the V1-V6, let's call that column V_ID. The values would then be a column, let's call that GAIN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your model statement would be MODEL GAIN = TREATMENT ....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then you would use BY V_ID.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 15:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823143#M40770</guid>
      <dc:creator>DanObermiller</dc:creator>
      <dc:date>2022-07-13T15:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: What error is in my sas syntax ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823159#M40774</link>
      <description>&lt;P&gt;The method for many models is illustrated in this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 16:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823159#M40774</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-13T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: What error is in my sas syntax ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823168#M40775</link>
      <description>&lt;P&gt;In PROC MIXED, you would have to run six models, each with one variable to the left of the equal sign.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you could switch to PROC GLM and have six response variables, but this estimates results differently than PROC MIXED.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 16:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-help-fixing-this-SAS-syntax-error/m-p/823168#M40775</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-13T16:29:49Z</dc:date>
    </item>
  </channel>
</rss>

