<?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: Exclusion from a group from a class variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Exclusion-from-a-group-from-a-class-variable/m-p/100453#M5183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignoring other issues and given your coding, simply use a WHERE statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc logistic data = test;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where Age_cat ne 'age2';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;class Age_cat;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;model y=Age_cat + x1;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2012 16:36:34 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2012-08-30T16:36:34Z</dc:date>
    <item>
      <title>Exclusion from a group from a class variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Exclusion-from-a-group-from-a-class-variable/m-p/100451#M5181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dear users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if I cant just exclude one group from my class variable by the logistic regression I mean, if I have the variable age:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value agegroup&amp;nbsp; 18-25 = 'age1'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25-35 = 'age2'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35-high= 'age3';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;data test;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;set scoring;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;retain Age_cat;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Age_cat = put(age,agegroup.);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;run;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P&gt;proc logistic data = test;&lt;/P&gt;&lt;P&gt;class Age_cat; &lt;/P&gt;&lt;P&gt;model y=Age_cat + x1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I see that for example the age2 is no significant, can I just delete this group from the logistic procedure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/36765" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-family: inherit; color: #0e66ba; background-color: #f3f3f3;"&gt;proc logistic with grouped variables&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 17:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Exclusion-from-a-group-from-a-class-variable/m-p/100451#M5181</guid>
      <dc:creator>danirecchia</dc:creator>
      <dc:date>2012-08-21T17:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exclusion from a group from a class variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Exclusion-from-a-group-from-a-class-variable/m-p/100452#M5182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, be careful when performing logistic ANCOVAs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;/* Add a grouping variable */&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;data test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;set scoring;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Age_cat = put(age,agegroup.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;/* You should first check if the effect of x1 is the same in each age group */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;proc logistic data = test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;class Age_cat; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;model y=Age_cat x1 Age_cat*x1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;/*If the interaction term (Age_cat*x1) isn't significant then you may do the ANCOVA. Otherwise, ANCOVA results are meaningless (cannot be interpreted). */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;proc logistic data = test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;class Age_cat; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;model y=Age_cat x1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only reason for removing an age group would be if x1 had a different effect for that group only and you wanted to perform an ANCOVA on the other groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 18:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Exclusion-from-a-group-from-a-class-variable/m-p/100452#M5182</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-08-21T18:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exclusion from a group from a class variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Exclusion-from-a-group-from-a-class-variable/m-p/100453#M5183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignoring other issues and given your coding, simply use a WHERE statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc logistic data = test;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where Age_cat ne 'age2';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;class Age_cat;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;model y=Age_cat + x1;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 16:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Exclusion-from-a-group-from-a-class-variable/m-p/100453#M5183</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2012-08-30T16:36:34Z</dc:date>
    </item>
  </channel>
</rss>

