<?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: How to get 95% CI for difference in Predicted Probabilities using with binary outcome and logit in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-95-CI-for-difference-in-Predicted-Probabilities-using/m-p/958264#M48000</link>
    <description>I just noticed that you have a random effect in the model. You could still use the NLMeans macro in the same basic way as shown in the note. But for a non-modeling approach, your data would be arranged as a stratified 2x2 table, with one stratum for each center. So, the PROC FREQ alternative would define the stratified table and then use the COMMONRISKDIFF option. For example:&lt;BR /&gt;&lt;BR /&gt;proc freq; tables center*group*sideeff / commonriskdiff; run;</description>
    <pubDate>Tue, 04 Feb 2025 19:13:49 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2025-02-04T19:13:49Z</dc:date>
    <item>
      <title>How to get 95% CI for difference in Predicted Probabilities using with binary outcome and logit link</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-95-CI-for-difference-in-Predicted-Probabilities-using/m-p/958260#M47998</link>
      <description>&lt;P&gt;I am using GLIMMIX to estimate predicted probabilities of a binary outcome in 2 groups. I can get the predicted probabilities for each group (and subtract them to get the difference) but how do I compute the 95% CI for the difference of the predicted probabilities. I know that I can not use the Difference of LSMEANS as the inverse link is not linear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC GLIMMIX DATA=multicenter ;&lt;BR /&gt;CLASS center group pt;&lt;BR /&gt;MODEL SideEffect/n = group / solution; &lt;BR /&gt;RANDOM center / solution; &lt;BR /&gt;LSMEANS group/ cl diff ilink;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Predicted Probability for Group A is 0.2147&lt;/P&gt;
&lt;P&gt;Predicted Probability for Group B is 0.3085.&lt;/P&gt;
&lt;P&gt;Difference would be 0.0938, but how to get the CI of the difference?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tka726_0-1738695436800.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104338i3C2DEF2CE4214706/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tka726_0-1738695436800.png" alt="tka726_0-1738695436800.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 19:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-95-CI-for-difference-in-Predicted-Probabilities-using/m-p/958260#M47998</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2025-02-04T19:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get 95% CI for difference in Predicted Probabilities using with binary outcome and logit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-95-CI-for-difference-in-Predicted-Probabilities-using/m-p/958262#M47999</link>
      <description>&lt;P&gt;If you really want to stick with a model-based approach, you can use the NLMeans macro as discussed and illustrated in &lt;A href="http://support.sas.com/kb/37228" target="_self"&gt;this note&lt;/A&gt;. But since your data can be summarized simply as a 2x2 table, you could take a non-modeling approach and simply use the RISKDIFF option in the TABLES statement of PROC FREQ after setting it up to show the 2x2 table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 19:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-95-CI-for-difference-in-Predicted-Probabilities-using/m-p/958262#M47999</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-02-04T19:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get 95% CI for difference in Predicted Probabilities using with binary outcome and logit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-95-CI-for-difference-in-Predicted-Probabilities-using/m-p/958264#M48000</link>
      <description>I just noticed that you have a random effect in the model. You could still use the NLMeans macro in the same basic way as shown in the note. But for a non-modeling approach, your data would be arranged as a stratified 2x2 table, with one stratum for each center. So, the PROC FREQ alternative would define the stratified table and then use the COMMONRISKDIFF option. For example:&lt;BR /&gt;&lt;BR /&gt;proc freq; tables center*group*sideeff / commonriskdiff; run;</description>
      <pubDate>Tue, 04 Feb 2025 19:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-95-CI-for-difference-in-Predicted-Probabilities-using/m-p/958264#M48000</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-02-04T19:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get 95% CI for difference in Predicted Probabilities using with binary outcome and logit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-95-CI-for-difference-in-Predicted-Probabilities-using/m-p/958272#M48001</link>
      <description>&lt;P&gt;Thanks so much! The NLMeans macro provides exactly what I need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;proc glimmix data=multicenter ;&lt;/DIV&gt;
&lt;DIV&gt;class center group ;&lt;/DIV&gt;
&lt;DIV&gt;model SideEffect/n = group / solution;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;random center / solution;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;lsmeans group/ e cl diff ilink;&lt;/DIV&gt;
&lt;DIV&gt;store out=proportions;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;proc plm restore=proportions;&lt;/DIV&gt;
&lt;DIV&gt;lsmeans group/e ilink diff;&lt;/DIV&gt;
&lt;DIV&gt;ods output coef=coeffs;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;%NLMeans(instore=proportions, coef=Coeffs, link=logit, title=Differences of Predicted Probabilities)&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 20:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-95-CI-for-difference-in-Predicted-Probabilities-using/m-p/958272#M48001</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2025-02-04T20:20:00Z</dc:date>
    </item>
  </channel>
</rss>

