<?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 Calculating RERI with Confidence Intervals for 3×2 Interaction in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculating-RERI-with-Confidence-Intervals-for-3-2-Interaction/m-p/975397#M378097</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm analyzing interaction between a categorical variable (3 levels: inadequate/adequate(ref)/excessive) and a binary medical condition on a binary outcome using modified Poisson regression with GEE.&lt;BR /&gt;&lt;BR /&gt;I recoded my exposures into a joint variable with a common reference category:&lt;BR /&gt;Joint Exposure Categories:&lt;/P&gt;&lt;P&gt;0: Adequate + No medical condition (reference)&lt;BR /&gt;1: Adequate + Medical condition&lt;BR /&gt;2: Inadequate + No medical condition&lt;BR /&gt;3: Inadequate + Medical condition&lt;BR /&gt;4: Excessive + No medical condition&lt;BR /&gt;5: Excessive + Medical condition&lt;/P&gt;&lt;P&gt;Current Model:&lt;BR /&gt;proc genmod data=mydata;&lt;BR /&gt;class joint (ref='0') id [other covariates];&lt;BR /&gt;model outcome = joint [covariates] / dist=poisson link=log;&lt;BR /&gt;repeated subject=id / type=exch corrw;&lt;BR /&gt;run;&lt;BR /&gt;I want to&amp;nbsp;Calculate RERI with valid confidence intervals for both exposure levels:&lt;/P&gt;&lt;P&gt;RERI_inadequate = RR₃ - RR₂ - RR₁ + 1&lt;BR /&gt;RERI_excessive = RR₅ - RR₄ - RR₁ + 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I can extract point estimates using:&lt;BR /&gt;estimate 'RR01' joint 1 0 0 0 0;&lt;BR /&gt;estimate 'RR10_Inad' joint 0 1 0 0 0;&lt;BR /&gt;estimate 'RR11_Inad' joint 0 0 1 0 0;&lt;BR /&gt;estimate 'RR10_Exc' joint 0 0 0 1 0;&lt;BR /&gt;estimate 'RR11_Exc' joint 0 0 0 0 1;&lt;BR /&gt;ods output Estimates=rr_out;&lt;BR /&gt;Then manually calculate RERI point estimates. However, this doesn't provide confidence intervals for RERI.&lt;BR /&gt;Questions:&lt;/P&gt;&lt;P&gt;Is my ESTIMATE statement approach correct for extracting the individual RRs?&lt;BR /&gt;What's the best method to get confidence intervals for RERI and how to code?&lt;/P&gt;</description>
    <pubDate>Sat, 20 Sep 2025 00:35:37 GMT</pubDate>
    <dc:creator>Sara_p-value</dc:creator>
    <dc:date>2025-09-20T00:35:37Z</dc:date>
    <item>
      <title>Calculating RERI with Confidence Intervals for 3×2 Interaction</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-RERI-with-Confidence-Intervals-for-3-2-Interaction/m-p/975397#M378097</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm analyzing interaction between a categorical variable (3 levels: inadequate/adequate(ref)/excessive) and a binary medical condition on a binary outcome using modified Poisson regression with GEE.&lt;BR /&gt;&lt;BR /&gt;I recoded my exposures into a joint variable with a common reference category:&lt;BR /&gt;Joint Exposure Categories:&lt;/P&gt;&lt;P&gt;0: Adequate + No medical condition (reference)&lt;BR /&gt;1: Adequate + Medical condition&lt;BR /&gt;2: Inadequate + No medical condition&lt;BR /&gt;3: Inadequate + Medical condition&lt;BR /&gt;4: Excessive + No medical condition&lt;BR /&gt;5: Excessive + Medical condition&lt;/P&gt;&lt;P&gt;Current Model:&lt;BR /&gt;proc genmod data=mydata;&lt;BR /&gt;class joint (ref='0') id [other covariates];&lt;BR /&gt;model outcome = joint [covariates] / dist=poisson link=log;&lt;BR /&gt;repeated subject=id / type=exch corrw;&lt;BR /&gt;run;&lt;BR /&gt;I want to&amp;nbsp;Calculate RERI with valid confidence intervals for both exposure levels:&lt;/P&gt;&lt;P&gt;RERI_inadequate = RR₃ - RR₂ - RR₁ + 1&lt;BR /&gt;RERI_excessive = RR₅ - RR₄ - RR₁ + 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I can extract point estimates using:&lt;BR /&gt;estimate 'RR01' joint 1 0 0 0 0;&lt;BR /&gt;estimate 'RR10_Inad' joint 0 1 0 0 0;&lt;BR /&gt;estimate 'RR11_Inad' joint 0 0 1 0 0;&lt;BR /&gt;estimate 'RR10_Exc' joint 0 0 0 1 0;&lt;BR /&gt;estimate 'RR11_Exc' joint 0 0 0 0 1;&lt;BR /&gt;ods output Estimates=rr_out;&lt;BR /&gt;Then manually calculate RERI point estimates. However, this doesn't provide confidence intervals for RERI.&lt;BR /&gt;Questions:&lt;/P&gt;&lt;P&gt;Is my ESTIMATE statement approach correct for extracting the individual RRs?&lt;BR /&gt;What's the best method to get confidence intervals for RERI and how to code?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Sep 2025 00:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-RERI-with-Confidence-Intervals-for-3-2-Interaction/m-p/975397#M378097</guid>
      <dc:creator>Sara_p-value</dc:creator>
      <dc:date>2025-09-20T00:35:37Z</dc:date>
    </item>
  </channel>
</rss>

