<?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: LS means procedure proc genmod binary dependent variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/LS-means-procedure-proc-genmod-binary-dependent-variable/m-p/141751#M35463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of SAS/STAT are you using, as the answer may depend on that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share your PROC GENMOD code?&amp;nbsp; It should be easy to change the CLASS statement to glm parameterization, which will open up all of these options. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS &amp;lt;your list of class variables here&amp;gt; / PARAM=GLM;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick check showed that the GLM parameterization is the default.&amp;nbsp; I only got the error you mentioned when I specified PARAM=REF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative approach, which works with the REF parameterization, would be to use PROC GLIMMIX.&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>Mon, 16 Jun 2014 12:30:39 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2014-06-16T12:30:39Z</dc:date>
    <item>
      <title>LS means procedure proc genmod binary dependent variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LS-means-procedure-proc-genmod-binary-dependent-variable/m-p/141750#M35462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have deduced my final model using proc genmod procedure in SAS. My dependent variable is binary; and I have categorical variables as predictors in my final model. I am interested in understanding which category of a variable is driving the whole effect, and was wondering if it is possible to use LSMEANS statement in genmod. When I try using the LSMEANS statement, I get the following error: &lt;/P&gt;&lt;P&gt;The model does not have a GLM parameterization. This parameterization is required for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the TEST, LSMEANS, LSMESTIMATE, and SLICE statement. These statements are ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please let me know the feasibility of using this procedure when we have a binary dependent variable? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Abby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 13:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LS-means-procedure-proc-genmod-binary-dependent-variable/m-p/141750#M35462</guid>
      <dc:creator>Abby</dc:creator>
      <dc:date>2014-06-13T13:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: LS means procedure proc genmod binary dependent variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LS-means-procedure-proc-genmod-binary-dependent-variable/m-p/141751#M35463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of SAS/STAT are you using, as the answer may depend on that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share your PROC GENMOD code?&amp;nbsp; It should be easy to change the CLASS statement to glm parameterization, which will open up all of these options. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS &amp;lt;your list of class variables here&amp;gt; / PARAM=GLM;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick check showed that the GLM parameterization is the default.&amp;nbsp; I only got the error you mentioned when I specified PARAM=REF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative approach, which works with the REF parameterization, would be to use PROC GLIMMIX.&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>Mon, 16 Jun 2014 12:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LS-means-procedure-proc-genmod-binary-dependent-variable/m-p/141751#M35463</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-16T12:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: LS means procedure proc genmod binary dependent variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LS-means-procedure-proc-genmod-binary-dependent-variable/m-p/730477#M35464</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible that when changing from param=ref to param=glm the model experiences convergence issues? Here's my original code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data=in.final;&lt;BR /&gt;class link_id agec (param=ref ref='1') sexf (param=ref ref='1') eth_f (param=ref ref='1')&lt;BR /&gt;year (param=ref ref=last) poly_meds_anyF (param=ref ref="0") Cluster (param=ref ref=last)&lt;BR /&gt;imd_local_quintile_f(param=ref ref=last) lang_F (param=ref ref='E');&lt;BR /&gt;model total_cons=sexf agec eth_f Cluster countltcs Cluster*countltcs imd_local_quintile_f poly_meds_anyF year lang_F /dist=negbin;&lt;BR /&gt;repeated subject=link_id / type=AR(1) covb corrw;&lt;BR /&gt;store out=catcont;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the param=glm code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data=in.final;&lt;BR /&gt;class link_id agec sexf eth_f year poly_meds_anyF Cluster imd_local_quintile_f lang_F/param=glm;&lt;BR /&gt;model total_cons=sexf agec eth_f Cluster countltcs Cluster*countltcs imd_local_quintile_f poly_meds_anyF year lang_F /dist=negbin;&lt;BR /&gt;repeated subject=link_id / type=AR(1) covb corrw;&lt;/P&gt;&lt;P&gt;store out=catcont;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much,&lt;/P&gt;&lt;P&gt;Marina&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 19:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LS-means-procedure-proc-genmod-binary-dependent-variable/m-p/730477#M35464</guid>
      <dc:creator>msb1</dc:creator>
      <dc:date>2021-03-31T19:41:31Z</dc:date>
    </item>
  </channel>
</rss>

