<?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: PROC CAUSALMED mediation analysis - convergence is questionable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954521#M47745</link>
    <description>&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="cs94C2684B"&gt;The &lt;FONT color="#008000"&gt;WARNING&lt;/FONT&gt; message is essentially saying that the data does not support the model in question. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="cs94C2684B"&gt;The classical suggestion would be to simplify the model, possibly by removing all the variables from the COVAR statement, and only adding variables back as you are able to get convergence. &amp;nbsp;Very likely it is a single variable or two that is causing the problem.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="cs94C2684B"&gt;But you claim you have done the latter (because you said you commented out all COVARs). Are you sure about this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;Anyway , I think you need to pick a model that is more conducive to the data.&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="cs94C2684B"&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2024 20:10:08 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2024-12-23T20:10:08Z</dc:date>
    <item>
      <title>PROC CAUSALMED mediation analysis - convergence is questionable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954512#M47742</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I need your urgent help with a mediation analysis I am conducting using the PROC CAUSALMED method in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;My study includes several mediators, several exposures, and several outcome variables.&amp;nbsp;These variables create 165 possible "Exposure-Mediator-Outcome" pathways, and for each pathway, I am running simple mediation models (one predictor and one mediator per model).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;For all the pathways involving the mediator "v004_rawvalue_2019", the "Summary of Effects" table in output only provides the point estimates but does &lt;STRONG&gt;not&lt;/STRONG&gt; report the standard errors, confidence intervals, or any other statistics, with a log saying the convergence is questionable. This issue does &lt;STRONG&gt;not&lt;/STRONG&gt; occur for other&amp;nbsp;&lt;SPAN&gt;"Exposure-Mediator-Outcome" models, so I’m unsure how to resolve them. I have tried commenting all the covariates out, but still received the same log and output. Please see the output in pic below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_3611.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103349i9BDDEC60E92B8DFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_3611.JPG" alt="IMG_3611.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code and Log: &lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC CAUSALMED DATA = WORK.A DESC;
CLASS&amp;nbsp;exposure MARITAL BREASTCANCER_SUBTYPE TUMOR_GRADE / REF=FIRST;&amp;nbsp;
MEDIATOR v004_rawvalue_2019 = exposure;&amp;nbsp;
MODEL&amp;nbsp;outcome = exposure v004_rawvalue_2019 / DIST=BIN LINK=LOGIT;
COVAR AGE MARITAL BREASTCANCER_SUBTYPE TUMOR_GRADE;&amp;nbsp;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;WARNING: The covariance matrix for the outcome model is not positive definite. The convergence is questionable.&lt;BR /&gt;WARNING: The covariance matrix for the mediator model is not positive definite. The convergence is questionable.&lt;BR /&gt;WARNING: Standard errors are not computed for the effect estimates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to deal with this &lt;span class="lia-unicode-emoji" title=":crying_cat_face:"&gt;😿&lt;/span&gt;Thank you very much in advance!!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 19:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954512#M47742</guid>
      <dc:creator>for_everyoung10</dc:creator>
      <dc:date>2024-12-23T19:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED mediation analysis - convergence is questionable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954521#M47745</link>
      <description>&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="cs94C2684B"&gt;The &lt;FONT color="#008000"&gt;WARNING&lt;/FONT&gt; message is essentially saying that the data does not support the model in question. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="cs94C2684B"&gt;The classical suggestion would be to simplify the model, possibly by removing all the variables from the COVAR statement, and only adding variables back as you are able to get convergence. &amp;nbsp;Very likely it is a single variable or two that is causing the problem.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="cs94C2684B"&gt;But you claim you have done the latter (because you said you commented out all COVARs). Are you sure about this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;Anyway , I think you need to pick a model that is more conducive to the data.&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs2654AE3A"&gt;&lt;SPAN class="cs94C2684B"&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 20:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954521#M47745</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-12-23T20:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED mediation analysis - convergence is questionable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954522#M47746</link>
      <description>&lt;P&gt;This WARNING was discussed several times on the SAS Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do a Google search like this :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;WARNING: The covariance matrix for the outcome model is not positive definite. The convergence is questionable.&lt;STRONG&gt;" site:communities.sas.com&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;(don't forget the quotes around the exact wording of the WARNING message)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ciao, Koen&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 20:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954522#M47746</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-12-23T20:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED mediation analysis - convergence is questionable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954523#M47747</link>
      <description>&lt;P&gt;Hi Koen,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I got the idea of eliminating the covariates from other SAS community posts. I am sure that commenting out all COVARs did not help and still produced the same result table as displayed in the original post (only point estimates shown and no SE, 95% CI, Z, and p-value). The mediator's variability and distribution also seem fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 20:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954523#M47747</guid>
      <dc:creator>for_everyoung10</dc:creator>
      <dc:date>2024-12-23T20:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED mediation analysis - convergence is questionable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954524#M47748</link>
      <description>&lt;P&gt;Covariates with&amp;nbsp;cell&amp;nbsp;sizes that are&amp;nbsp;(very) small?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 21:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954524#M47748</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-12-23T21:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED mediation analysis - convergence is questionable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954525#M47749</link>
      <description>&lt;P&gt;No I don't think so&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 21:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954525#M47749</guid>
      <dc:creator>for_everyoung10</dc:creator>
      <dc:date>2024-12-23T21:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED mediation analysis - convergence is questionable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954527#M47750</link>
      <description>&lt;P&gt;&lt;SPAN&gt;BTW &lt;/SPAN&gt;I tried&amp;nbsp;&lt;SPAN&gt;imputing missing values using the mean for&amp;nbsp;v004_rawvalue_2019, then redid the PROC CAUSALMED. The output shows a full complete&lt;EM&gt; Summary of Effects&lt;/EM&gt; table, but the point estimates are very different from the incomplete table in the original post... (e.g. OR = 1.4 in the original incomplete table, while being 0.8 in this new table)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;PS: 1077 values are missing in this mediator&amp;nbsp;variable "&amp;nbsp;v004_rawvalue_2019"&amp;nbsp;with a total number of observations of 739,448.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 21:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954527#M47750</guid>
      <dc:creator>for_everyoung10</dc:creator>
      <dc:date>2024-12-23T21:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED mediation analysis - convergence is questionable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954528#M47751</link>
      <description>When there is missing data, SAS PROC CAUSALMED relies on complete-case only analysis. The causal effects are by default estimated conditional on the mean covariate value unless other covariate values are specified by the user.&lt;BR /&gt;Please check for each analysis how many observations are actually being used to build the model.&lt;BR /&gt;How to check that?&lt;BR /&gt;--&amp;gt; In the Results, navigate to the Model Information table.&lt;BR /&gt;It has:&lt;BR /&gt;&lt;BR /&gt;  *   Number of Observations Read&lt;BR /&gt;  *   Number of Observations Used&lt;BR /&gt;Cheers,&lt;BR /&gt;Koen&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Dec 2024 23:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954528#M47751</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-12-23T23:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED mediation analysis - convergence is questionable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954533#M47752</link>
      <description>&lt;P&gt;Hi Koen, Thank you for your message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;In all the models where "v004_rawvalue_2019" is used as a mediator, I found a difference between &lt;EM&gt;Number of Observations Read&lt;/EM&gt; and&lt;EM&gt; Number of Observations Used&lt;/EM&gt; &amp;nbsp;of 153,767. I have also checked this value in other mediators. Four other mediators have the same value of&amp;nbsp;135882, while others range from&amp;nbsp;152,969 to&amp;nbsp;153,637. &amp;nbsp;These differences are not small and are even quite close to the difference for v004_rawvalue_2019. However, these models produce complete tables with data, while the model for v004_rawvalue_2019&amp;nbsp;does not. This seems very confusing.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 02:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-mediation-analysis-convergence-is-questionable/m-p/954533#M47752</guid>
      <dc:creator>for_everyoung10</dc:creator>
      <dc:date>2024-12-24T02:03:17Z</dc:date>
    </item>
  </channel>
</rss>

