<?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 survey data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/963286#M48296</link>
    <description>Any progress on this since the post? I'm facing the same problem.</description>
    <pubDate>Thu, 03 Apr 2025 05:42:47 GMT</pubDate>
    <dc:creator>dbcrow</dc:creator>
    <dc:date>2025-04-03T05:42:47Z</dc:date>
    <item>
      <title>PROC CAUSALMED survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/580921#M28495</link>
      <description>&lt;P&gt;Hi. I am using PROC CAUSALMED for mediation analysis for the first time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have survey data. Can strata, cluster, and weight options/statements be added in PROC CAUSALMED?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this but need to add strata, cluster, and weight...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc causalmed data =nhanes.data all;&lt;BR /&gt;model mi=dog ;&lt;BR /&gt;mediator bmxbmi=dog;&lt;BR /&gt;covar age smoker alc_ok dmdeduc2 riagendr;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 18:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/580921#M28495</guid>
      <dc:creator>kmwats</dc:creator>
      <dc:date>2019-08-13T18:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/582690#M28585</link>
      <description>&lt;P&gt;The short answer is yes. You can read more here:&amp;nbsp;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1991-2018.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1991-2018.pdf&lt;/A&gt;&amp;nbsp;and/or by accessing the online SAS documentation for proc causal med.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 07:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/582690#M28585</guid>
      <dc:creator>greveam</dc:creator>
      <dc:date>2019-08-21T07:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/585073#M28670</link>
      <description>I think you mean using PROC PSMATCH for propensity scoring. It does look&lt;BR /&gt;like it may work for my data. Thank you!&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Aug 2019 20:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/585073#M28670</guid>
      <dc:creator>kmwats</dc:creator>
      <dc:date>2019-08-29T20:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/963286#M48296</link>
      <description>Any progress on this since the post? I'm facing the same problem.</description>
      <pubDate>Thu, 03 Apr 2025 05:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/963286#M48296</guid>
      <dc:creator>dbcrow</dc:creator>
      <dc:date>2025-04-03T05:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/963288#M48297</link>
      <description>&lt;P&gt;The documentation makes clear that PROC CAUSALMED doesn't accommodate even weight vectors, much less weights from a more complex survey scheme. There is no "WEIGHT" statement in the proc, unfortunately.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any more thoughts on this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 05:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/963288#M48297</guid>
      <dc:creator>dbcrow</dc:creator>
      <dc:date>2025-04-03T05:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/963291#M48298</link>
      <description>&lt;P&gt;First of all, please make sure about the module you wish to invoke for your analysis. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/285082"&gt;@kmwats&lt;/a&gt;&amp;nbsp;orignially raised questions on PROC CAUSALMED but digressed to PROC PSMATCH as he/she found it suitable for his/her analysis.&lt;/P&gt;
&lt;P&gt;Second, based upon your reply, it seems that you are really looking for information on conducting complex survey data analysis with PROC CAUSALMED. If that is the case, then I regret to inform you that the SAS's built-in SURVEY procedures only serve to conduct a fraction of complex survey data analysis. In other words, many of the complex survey data versions of advanced statistical methods are not supported by SAS's built-in procedures.&amp;nbsp;&lt;STRONG&gt;Mediation analysis in the setting of complex survey data analysis is one of the methods not supported by SAS's built-in proceudres till now.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;To get around this with SAS, you must either be quite familiar with the algorithms of the method and compile a macro from scratch or search on the web and use a macro compiled by someone else, if there is any. However, given my experience in complex survey data analysis, it is usually quite futile to search on the web over and over again for a SAS macro, as the number of SAS users skilled at complex survey data analysis and willing to deal with the very problem you encounter is too small for the generation of at least one paper on every particular problem.&lt;/P&gt;
&lt;P&gt;Therefore, I suggest that you search on the web briefly to see if anybody has compiled such macros. If the answer is no, then I suggest that you stop searching for SAS macros and switch to looking for R packages. It is much more likely to find R packages for a certain question than to find a SAS macro for the same one.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 07:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/963291#M48298</guid>
      <dc:creator>Season</dc:creator>
      <dc:date>2025-04-03T07:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/966017#M48498</link>
      <description>&lt;P&gt;Thanks for this suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had searched R for analysis of survey data. There's the "survey" package, but SAS is far superior to R for analyzing complex survey data. The R "survey" package doesn't even support cross-tabulations; I had to write a function to "trick" the package into doing a crosstab. R has no package for mediation analysis with complex survey data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 20:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/966017#M48498</guid>
      <dc:creator>dbcrow</dc:creator>
      <dc:date>2025-05-07T20:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CAUSALMED survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/966019#M48499</link>
      <description>&lt;P&gt;One option might be to make use of the WEIGHT statement in Proc CAUSALMED to run with one of the replication methods.&amp;nbsp; The general approach would be to use one of the SURVEYXXX procedures to compute the replicate weights and then to run CAUSALMED with each set of replicate weights.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is an example of doing something similar with Proc GENMOD.&amp;nbsp; You could likely adapt this example by substituting the CAUSALMED step for the GENMOD step.&amp;nbsp; You might need to do some research to see if this would be statistically valid, but I have seen others use a similar approach with BRR for mediation models.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/app/stat/examples/SurveyPoisson/surveypoisson.htm" target="_blank" rel="noopener noreferrer"&gt;SAS/STAT Poisson Regressions for Complex Surveys&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 20:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-survey-data/m-p/966019#M48499</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2025-05-07T20:23:32Z</dc:date>
    </item>
  </channel>
</rss>

