<?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: EFFECT statement in proc GLMSELECT in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/EFFECT-statement-in-proc-GLMSELECT/m-p/101291#M5279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;List only the "real" variables in the CLASS stmt. The effects that you generate in the EFFECT stmt have known characteristics (discrete vs continuous) based on the type of effect and the variables that you use to construct them. In your example (a LAG effect of a classification variable), the procedure "knows" that the generated effect is a classification effect. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2012 13:56:28 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2012-08-22T13:56:28Z</dc:date>
    <item>
      <title>EFFECT statement in proc GLMSELECT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/EFFECT-statement-in-proc-GLMSELECT/m-p/101290#M5278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everone;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you might know, one new thing in 9.3 version is EFFECT statement. I incorporate it in glmselect and got the following error and got confused how to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;ods html;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;set tmp1.readmission;&lt;/P&gt;&lt;P&gt;laglos=ifn(seq=1,los,lag1(los));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc glmselect data= new outdesign(fullmodel) = x;&lt;/P&gt;&lt;P&gt;class elig pdiagnosis;&lt;/P&gt;&lt;P&gt;EFFECT lagelig=lag(elig/within=id period=seq nlag=1);&lt;/P&gt;&lt;P&gt;EFFECT lagpdiagnosis=lag(pdiagnosis/within=id period=seq nlag=1);&lt;/P&gt;&lt;P&gt;class&amp;nbsp; mar mtest(missing) pows(ref='NO') rad(ref='NO') lagelig lagpdiagnosis ;&lt;/P&gt;&lt;P&gt;model rstatus= id rtime seq disyear admage disage polyagelaglos mar mtest pows rad lagelig lagpdiagnosis;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log looks like this: &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;56&amp;nbsp;&amp;nbsp; class&amp;nbsp; mar mtest(missing) pows(ref='NO') rad(ref='NO') lagelig lagpdiagnosis ;&lt;/P&gt;&lt;P&gt;ERROR: Variable LAGELIG not found.&lt;/P&gt;&lt;P&gt;ERROR: Variable LAGPDIAGNOSIS not found.&lt;/P&gt;&lt;P&gt;57&amp;nbsp;&amp;nbsp; model rstatus= id rtime seq disyear admage disage polyagelaglos mar mtest pows rad lagelig&lt;/P&gt;&lt;P&gt;57 !&amp;nbsp; lagpdiagnosis;&lt;/P&gt;&lt;P&gt;58&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any helpful comments would be appreciative. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Issac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 23:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/EFFECT-statement-in-proc-GLMSELECT/m-p/101290#M5278</guid>
      <dc:creator>issac</dc:creator>
      <dc:date>2012-08-21T23:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: EFFECT statement in proc GLMSELECT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/EFFECT-statement-in-proc-GLMSELECT/m-p/101291#M5279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;List only the "real" variables in the CLASS stmt. The effects that you generate in the EFFECT stmt have known characteristics (discrete vs continuous) based on the type of effect and the variables that you use to construct them. In your example (a LAG effect of a classification variable), the procedure "knows" that the generated effect is a classification effect. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 13:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/EFFECT-statement-in-proc-GLMSELECT/m-p/101291#M5279</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-08-22T13:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: EFFECT statement in proc GLMSELECT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/EFFECT-statement-in-proc-GLMSELECT/m-p/101292#M5280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your comments. I've changed the place of class stmt and it works. Think it is necessary to include all of categorical in class before going through effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class mar mtest pows rad elig pdiagnosis;&lt;/P&gt;&lt;P&gt;EFFECT lagelig=lag(elig/within=id period=seq nlag=1);&lt;/P&gt;&lt;P&gt;EFFECT lagpdiagnosis=lag(pdiagnosis/within=id period=seq nlag=1);&lt;/P&gt;&lt;P&gt;model rstatus= id rtime seq disyear admage disage mar mtest pows rad lagelig lagpdiagnosis;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Issac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 15:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/EFFECT-statement-in-proc-GLMSELECT/m-p/101292#M5280</guid>
      <dc:creator>issac</dc:creator>
      <dc:date>2012-08-22T15:26:24Z</dc:date>
    </item>
  </channel>
</rss>

