<?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: Exponentiate CLs when using PROC GEE? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Exponentiate-CLs-when-using-PROC-GEE/m-p/933572#M46554</link>
    <description>&lt;P&gt;What you want can be provided by adding the LSMEANS statement in your GEE step. Since your model involves the interaction of the two predictors, the effect of one of the predictors requires more than just exponentiating that predictor's main effect parameter. It must also involve parameters of the interaction. Also, since each predictor is categorical, there isn't a single estimate of its effect. A predictor's effect is assessed by a set of comparisons among its levels. This is automatically done for you by the LSMEANS statement. The following statement provides, in the Differences tables, the exponentiated comparisons among the levels of one predictor, averaged over the levels of the interacting predictor. The exponentiated estimates are ratios of mean counts. The&amp;nbsp; E option shows the combination of parameters that are involved in the computation that is exponentiated. The manner in which that averaging is done can be altered by additional options available in the LSMEANS statement - see the documentation of the LSMEANS statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmeans PREPG_CAN_NEW trimester / e diff exp cl;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 15:12:37 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2024-06-24T15:12:37Z</dc:date>
    <item>
      <title>Exponentiate CLs when using PROC GEE?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Exponentiate-CLs-when-using-PROC-GEE/m-p/933325#M46551</link>
      <description>&lt;P&gt;Hello, I am working with a small dataset of pregnant cannabis users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PROC GEE to examine the effect of preconception cannabis use (&lt;STRONG&gt;prepg_can_new&lt;/STRONG&gt;, categorical 1-3) on current cannabis use (&lt;STRONG&gt;Candays&lt;/STRONG&gt;, count data 0-30) across the prenatal period. Candays is a repeated measure, asked at each &lt;STRONG&gt;trimester&lt;/STRONG&gt; (categorical 1-3). I am using link=log and a negative binomial distribution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GOAL: I would like to exponentiate point estimates and 95% CLs so they are meaningful during interpretation (IRR).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using GEE, it seems like I need to run a separate data step to do this. When I run the code below, it exponentiates betas but NOT CLs. &lt;U&gt;&lt;STRONG&gt;How could I adjust this code to get exponentiated CLs??&lt;/STRONG&gt;&lt;/U&gt;&lt;FONT color="#FF0000"&gt; Potential issue highlighted in red below.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GEE DATA=RQ1_NEW;&lt;/P&gt;&lt;P&gt;CLASS BL_MARCH_ID TRIMESTER PREPG_CAN_NEW (ref='1');&lt;/P&gt;&lt;P&gt;MODEL CANDAYS = PREPG_CAN_NEW trimester PREPG_CAN_NEW*TRIMESTER /Dist=negbin LINK=log;&lt;/P&gt;&lt;P&gt;REPEATED SUBJECT=BL_MARCH_ID/WITHIN=TRIMESTER TYPE=EXCH;&lt;/P&gt;&lt;P&gt;STORE P1;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS OUTPUT PARAMETERESTIMATES = EST;&lt;/P&gt;&lt;P&gt;PROC PLM SOURCE = P1;&lt;/P&gt;&lt;P&gt;SHOW PARAMETERS;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data EST_EXP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set EST;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if upcase(parameter) not in ('INTERCEPT') then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRR = exp(estimate);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRR_LCL = exp(lclm);&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRR_UCL = exp(uclm);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA = EST_EXP; RUN;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 14:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Exponentiate-CLs-when-using-PROC-GEE/m-p/933325#M46551</guid>
      <dc:creator>KrissyA</dc:creator>
      <dc:date>2024-06-21T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exponentiate CLs when using PROC GEE?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Exponentiate-CLs-when-using-PROC-GEE/m-p/933572#M46554</link>
      <description>&lt;P&gt;What you want can be provided by adding the LSMEANS statement in your GEE step. Since your model involves the interaction of the two predictors, the effect of one of the predictors requires more than just exponentiating that predictor's main effect parameter. It must also involve parameters of the interaction. Also, since each predictor is categorical, there isn't a single estimate of its effect. A predictor's effect is assessed by a set of comparisons among its levels. This is automatically done for you by the LSMEANS statement. The following statement provides, in the Differences tables, the exponentiated comparisons among the levels of one predictor, averaged over the levels of the interacting predictor. The exponentiated estimates are ratios of mean counts. The&amp;nbsp; E option shows the combination of parameters that are involved in the computation that is exponentiated. The manner in which that averaging is done can be altered by additional options available in the LSMEANS statement - see the documentation of the LSMEANS statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmeans PREPG_CAN_NEW trimester / e diff exp cl;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 15:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Exponentiate-CLs-when-using-PROC-GEE/m-p/933572#M46554</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-06-24T15:12:37Z</dc:date>
    </item>
  </channel>
</rss>

