<?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: Statement is not valid...Error when using the Slice statement in Proc Logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155984#M8157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I pasted the wrong code at first (had param=ref) and edited it after I posted it. The log is vague - it just says it's invalid or is not in the proper order. Weird. I wonder if it's a patch thing or version issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 19:18:38 GMT</pubDate>
    <dc:creator>FreddyAdams</dc:creator>
    <dc:date>2014-06-26T19:18:38Z</dc:date>
    <item>
      <title>Statement is not valid...Error when using the Slice statement in Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155980#M8153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me the position of the Slice Statement in Proc Logistic syntax? I've put it all over the place and I keep getting the above error about invalidity or proper order. I'm using the param=glm option. Thanks, wardodd &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 22:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155980#M8153</guid>
      <dc:creator>FreddyAdams</dc:creator>
      <dc:date>2014-06-25T22:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Statement is not valid...Error when using the Slice statement in Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155981#M8154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help to show the rest of your syntax as well. Some options may be incompatible with others.&lt;/P&gt;&lt;P&gt;A partial example from online help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002816"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002817"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002818"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002819"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002820"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002821"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002822"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002823"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002824"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002825"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002826"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002827"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002828"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002829"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002830"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002831"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002832"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002833"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002834"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002835"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002836"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002837"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002838"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002839"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002840"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002841"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002842"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002843"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002844"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002845"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002846"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002847"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002848"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002849"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002850"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002851"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002852"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002853"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002854"&gt;&lt;/A&gt;&lt;A class="syntaxindex" id="statug.introcom.a0000002855"&gt;&lt;/A&gt;determines how to construct the partition of the least squares means for the &lt;EM&gt;model-effect&lt;/EM&gt;. A &lt;EM&gt;slice-specification&lt;/EM&gt; consists of an effect name followed by an optional list of formatted values. For example, the following statements creates partitions of the &lt;SPAN class="variable"&gt;A&lt;/SPAN&gt;*&lt;SPAN class="variable"&gt;B&lt;/SPAN&gt; interaction effect for all levels of variable &lt;SPAN class="variable"&gt;A&lt;/SPAN&gt;: &lt;/P&gt;&lt;PRE class="sascode"&gt;class a b;&amp;nbsp; model y = a b a*b;&amp;nbsp; slice a*b / sliceby=a;&amp;nbsp; &lt;/PRE&gt;&lt;P&gt;Similar to use of LSMEANS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 23:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155981#M8154</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-25T23:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Statement is not valid...Error when using the Slice statement in Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155982#M8155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;logistic &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; = test ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; gender_code (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'M'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;) const (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;) back (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;param&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=glm;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; employed1 (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;event&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;) = const back gender_code gender_code*back gender_code*const const*back/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;rsq &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;lackfit&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: red; font-family: 'Courier New'; font-size: 10pt;"&gt;slice&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; const*back/sliceby back&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;oddsratio&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; back;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;oddsratio&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; const;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;oddsratio&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; gender_code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 200%; color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; line-height: 200%; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 01:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155982#M8155</guid>
      <dc:creator>FreddyAdams</dc:creator>
      <dc:date>2014-06-26T01:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Statement is not valid...Error when using the Slice statement in Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155983#M8156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Curious.&amp;nbsp; The code you posted here is different from that which came by e-mail.&amp;nbsp; The PARAM=GLM is required for the SLICE statement to be valid.&amp;nbsp; Perhaps you could post your log, as something strange is going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 01:43:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155983#M8156</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2014-06-26T01:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Statement is not valid...Error when using the Slice statement in Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155984#M8157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I pasted the wrong code at first (had param=ref) and edited it after I posted it. The log is vague - it just says it's invalid or is not in the proper order. Weird. I wonder if it's a patch thing or version issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 19:18:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155984#M8157</guid>
      <dc:creator>FreddyAdams</dc:creator>
      <dc:date>2014-06-26T19:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Statement is not valid...Error when using the Slice statement in Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155985#M8158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless you are operating on a version earlier than 9.2, I doubt that it is a version issue.&amp;nbsp; Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;slice const*back/sliceby = back&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be that the syntax requires the equals sign in the sliceby option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 13:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statement-is-not-valid-Error-when-using-the-Slice-statement-in/m-p/155985#M8158</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-27T13:44:36Z</dc:date>
    </item>
  </channel>
</rss>

