<?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 Proc Logistic, set reference group without using formats? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129765#M6815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running Proc Logistic. is there a way to run the class statement by putting the value instead of the format name? So in order to get my command to work I had to run the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data = recode ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class agegp (ref='2.age grp 45-65') sex (ref='1.Male') /param = ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model Y (event='1. &amp;lt;64') = agegp sex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case, agegroup=2&amp;nbsp; and sex=1 are my reference groups (my format is value.category). I have tried doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data = recode ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class agegp (ref=2) sex (ref=1) /param = ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; model Y (event=1) = agegp sex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code above gives me a syntax error. I am hoping to avoid copying and pasting the format names. And hopefully make my code shorter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Oct 2013 23:07:01 GMT</pubDate>
    <dc:creator>Tpham</dc:creator>
    <dc:date>2013-10-30T23:07:01Z</dc:date>
    <item>
      <title>Proc Logistic, set reference group without using formats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129765#M6815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running Proc Logistic. is there a way to run the class statement by putting the value instead of the format name? So in order to get my command to work I had to run the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data = recode ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class agegp (ref='2.age grp 45-65') sex (ref='1.Male') /param = ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model Y (event='1. &amp;lt;64') = agegp sex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case, agegroup=2&amp;nbsp; and sex=1 are my reference groups (my format is value.category). I have tried doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data = recode ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class agegp (ref=2) sex (ref=1) /param = ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; model Y (event=1) = agegp sex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code above gives me a syntax error. I am hoping to avoid copying and pasting the format names. And hopefully make my code shorter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 23:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129765#M6815</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2013-10-30T23:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic, set reference group without using formats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129766#M6816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If a format is assigned to the variable, the ref= syntax requires the use of the formatted value.&amp;nbsp; See The Logistic Procedure&amp;gt;Syntax&amp;gt;CLASS Statement&amp;gt;REF= for the word on this.&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>Thu, 31 Oct 2013 12:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129766#M6816</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-10-31T12:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic, set reference group without using formats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129767#M6817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a FORMAT statement to the PROC to clear the assigned formats from the variables.&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;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc logistic data = recode ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; format agegp sex ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; class agegp (ref=2) sex (ref=1) /param = ref;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; mode&lt;/SPAN&gt;l Y (event=1) = agegp sex;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 14:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129767#M6817</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-10-31T14:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic, set reference group without using formats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129768#M6818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sweet!&amp;nbsp; I didn't know you could clear formats like that.&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>Thu, 31 Oct 2013 15:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129768#M6818</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-10-31T15:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic, set reference group without using formats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129769#M6819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I this works... but is there a way to have the best of both worlds.. not having to type in the format in the class statement AND have it output with formats?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 15:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129769#M6819</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2013-10-31T15:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic, set reference group without using formats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129770#M6820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to work for SAS and re-write PROC LOGISTIC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default reference is the largest value (unless you add the DESCENDING option).&lt;/P&gt;&lt;P&gt;So code your formats so that the reference value is the largest value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 15:39:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129770#M6820</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-10-31T15:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic, set reference group without using formats?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129771#M6821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or smallest and use ref=first&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 16:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-set-reference-group-without-using-formats/m-p/129771#M6821</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-31T16:08:57Z</dc:date>
    </item>
  </channel>
</rss>

