<?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: Descending option ignored in Proc Genmod in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686671#M33070</link>
    <description>&lt;P&gt;I figured the human factor was involved here... Thanks so much for helping me out!&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 12:23:06 GMT</pubDate>
    <dc:creator>chrnie</dc:creator>
    <dc:date>2020-09-25T12:23:06Z</dc:date>
    <item>
      <title>Descending option ignored in Proc Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686319#M33053</link>
      <description>&lt;P&gt;I am in the early modelling phase and am initially just trying to set up a univariate model (modified Poisson in Proc Genmod) regressing initiation of breastfeeding (0/1) on exposure category (3 categories with varying degree of exposure to a pollutant). The coding is such that initiation=1, but am more interested in modelling initiation=0 (i.e. the default in proc genmod). However, just to make sure the results came out right I reran the model with the descending option. To my surprise the results are identical. I also realize that SAS no longer states what is being modelled as in the good old days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really like to know what I am missing here. Greatful for any input!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;First run&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Proc GenMod data=final_primi ;&amp;nbsp;&lt;BR /&gt;Class ind expcat/param=ref ref=last;&amp;nbsp;&lt;BR /&gt;Model initiation= expcat / Dist=poisson Link=log type3;&amp;nbsp;&lt;BR /&gt;Repeated subject=ind/ type=exch; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Second run&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Proc GenMod data=final_primi desc;&amp;nbsp;&lt;BR /&gt;Class ind expcat/param=ref ref=last;&amp;nbsp;&lt;BR /&gt;Model initiation= expcat / Dist=poisson Link=log type3;&amp;nbsp;&lt;BR /&gt;Repeated subject=ind/ type=exch; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686319#M33053</guid>
      <dc:creator>chrnie</dc:creator>
      <dc:date>2020-09-24T09:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Descending option ignored in Proc Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686391#M33056</link>
      <description>&lt;P&gt;Perhaps I am misunderstanding your model, but it does not look like a Poisson model to me. If the response variable is binary (0/1), then change DIST=POISSON to DIST=BIN. The DESC option now does what you expect it to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI, you can also bypass the DESC option on the PROC GENMOD statement and specify the order of the response variable by using the MODEL statement. Either of the following will change the order of the target level of the response variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Model initiation(event='1') = ... ;&lt;/P&gt;
&lt;P&gt;or&lt;BR /&gt;Model initiation(DESC) = ... ; &lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 14:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686391#M33056</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-09-24T14:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Descending option ignored in Proc Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686505#M33057</link>
      <description>&lt;P&gt;As described in the documentation for the &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_genmod_syntax01.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#statug.genmod.genmoddescendingopt" target="_self"&gt;DESCENDING option&lt;/A&gt;, it applies only to models with a binary or ordinal multinational response. PROC GENMOD determines the response type by the distribution function that is used, so if you are using a modified Poisson approach and have specified DIST=POISSON the response &lt;STRONG&gt;is not&lt;/STRONG&gt; treated as a categorical variable with ordered levels and the DESCENDING option is ignored (there also is no Response Profile table in the displayed output).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe for the problem you are interested in you would have to create a new response variable with a 0/1 coding where 1 corresponds to the event you want modeled.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 20:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686505#M33057</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2020-09-24T20:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Descending option ignored in Proc Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686671#M33070</link>
      <description>&lt;P&gt;I figured the human factor was involved here... Thanks so much for helping me out!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 12:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686671#M33070</guid>
      <dc:creator>chrnie</dc:creator>
      <dc:date>2020-09-25T12:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Descending option ignored in Proc Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686778#M33077</link>
      <description>Glad to help, and good catch on your part to notice the difference between what you had and mind and what the procedure was doing.</description>
      <pubDate>Fri, 25 Sep 2020 17:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Descending-option-ignored-in-Proc-Genmod/m-p/686778#M33077</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2020-09-25T17:04:12Z</dc:date>
    </item>
  </channel>
</rss>

