<?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: Trouble fitting proc causalmed model with continuous treatment/exposure and continuous mediators in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880762#M43563</link>
    <description>&lt;P&gt;I understand. I am trying to specify my exposure using log-normalized and standardized restricted cubic splines. When I plug my corresponding variables with an interaction with my mediator into the model I get an error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC CAUSALMED DATA=G (WHERE=(C7_INCHF20 NE .));&lt;BR /&gt;CLASS race_ncat smokestat sex_ncat / DESCENDING;&lt;BR /&gt;MODEL time_to_event*outcome(1) = D_Dimer_ln_centered ddimers015 ddimers023 ddimers033 mediator D_Dimer_ln_centered*mediator ddimers015*mediator ddimers023*mediator ddimers033*mediator / COXPH;&lt;BR /&gt;MEDIATOR mediator = D_Dimer_ln_centered ddimers015 ddimers023 ddimers033;&amp;nbsp;&lt;BR /&gt;COVAR race_ncat smokestat sex_ncat V3AGE31 age_sq;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;This is the error I get:&lt;/P&gt;&lt;P&gt;__________&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;31&amp;nbsp;&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;32 COVAR race_ncat smokestat sex_ncat V3AGE31 age_sq;&lt;BR /&gt;33 RUN;&lt;BR /&gt;34&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 17:46:53 GMT</pubDate>
    <dc:creator>moni2</dc:creator>
    <dc:date>2023-06-14T17:46:53Z</dc:date>
    <item>
      <title>Trouble fitting proc causalmed model with continuous treatment/exposure and continuous mediators(s)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880685#M43554</link>
      <description>&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Hello. I need to use PROC CAUSALMED as a part of my analysis.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;My question is: how do you appropriately fit continuous variables (exposure and mediator(s) in the PROC CAUSALMED procedure? Is it important to model them as we would traditionally when setting up say a PROC GENMOD with linear regression. Or, should I 'just' insert the variables in the model 'as is' assuming the program will decide on the correct model?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Essentially:&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&amp;nbsp;I have &amp;gt;1,000 continuous mediators I would like to evaluate.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;A binary outcome (0,1) with time to event&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Categorical covariates on race/gender which I made into binary variables (0,1) and age which I am hoping to model as quadratic (age age_sq).&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;The exposure is continuous and it seemed the best way to model that was log-normalized cubic with restricted splines (&lt;SPAN class=""&gt;&amp;nbsp;D_Dimer_ln_centered ddimers015 ddimers023 ddimers033).&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;I want to include interactions between my exposure and mediator.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Here is my program below that I am struggling to fit:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;PROC CAUSALMED DATA=G (WHERE=(C7_INCHF20 NE .));&lt;DIV class=""&gt;      CLASS r_asian r_white r_black r_natamer cur_smoke for_smoke nev_smoke g_fem g_male / DESCENDING;&lt;/DIV&gt;&lt;DIV class=""&gt;      MODEL time_to_event*CHF= D_Dimer_ln_centered ddimers015 ddimers023 ddimers033 mediator1 /COXPH;&lt;/DIV&gt;&lt;DIV class=""&gt;      MEDIATOR mediator1 = D_Dimer_ln_centered; *You cannot specify more than one MEDIATOR statement in an analysis.;&lt;/DIV&gt;&lt;DIV class=""&gt;      COVAR r_asian r_white r_black r_natamer cur_smoke for_smoke nev_smoke g_fem g_male age age_sq;&lt;/DIV&gt;RUN;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I have reviewed the documentation for the program, but it does not mention what to do with continuous variables (other than you can) and how many variables or how to specify them in the model.&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Thank you in advance for your help.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Jun 2023 14:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880685#M43554</guid>
      <dc:creator>moni2</dc:creator>
      <dc:date>2023-06-14T14:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble fitting proc causalmed model with continuous treatment/exposure and continuous mediators</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880705#M43555</link>
      <description>&lt;P&gt;CAUSALMED will not find the best model for you.&amp;nbsp; It simply assumes that if you place the variable in the COVAR statement then you intend to use it as a covariate in the outcome and mediator model.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880705#M43555</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-06-14T15:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble fitting proc causalmed model with continuous treatment/exposure and continuous mediators</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880762#M43563</link>
      <description>&lt;P&gt;I understand. I am trying to specify my exposure using log-normalized and standardized restricted cubic splines. When I plug my corresponding variables with an interaction with my mediator into the model I get an error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC CAUSALMED DATA=G (WHERE=(C7_INCHF20 NE .));&lt;BR /&gt;CLASS race_ncat smokestat sex_ncat / DESCENDING;&lt;BR /&gt;MODEL time_to_event*outcome(1) = D_Dimer_ln_centered ddimers015 ddimers023 ddimers033 mediator D_Dimer_ln_centered*mediator ddimers015*mediator ddimers023*mediator ddimers033*mediator / COXPH;&lt;BR /&gt;MEDIATOR mediator = D_Dimer_ln_centered ddimers015 ddimers023 ddimers033;&amp;nbsp;&lt;BR /&gt;COVAR race_ncat smokestat sex_ncat V3AGE31 age_sq;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;This is the error I get:&lt;/P&gt;&lt;P&gt;__________&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;31&amp;nbsp;&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;32 COVAR race_ncat smokestat sex_ncat V3AGE31 age_sq;&lt;BR /&gt;33 RUN;&lt;BR /&gt;34&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 17:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880762#M43563</guid>
      <dc:creator>moni2</dc:creator>
      <dc:date>2023-06-14T17:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble fitting proc causalmed model with continuous treatment/exposure and continuous mediators</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880775#M43565</link>
      <description>&lt;P&gt;Could you post the entire LOG with the CAUSALMED code and ERRORs in their proper context?&lt;/P&gt;
&lt;P&gt;You should only have the treatment and mediator variables (and possibly their interactions) on the MODEL statement, so that might be why you are getting an ERROR.&amp;nbsp; Likewise with the MEDIATOR statement you should only have the treatment variable.&amp;nbsp; All of the other variables would then appear in the COVAR statement.&amp;nbsp; Something similar to this example would show the proper syntax (excepting the AFT option).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_039/statug/statug_causalmed_examples05.htm" target="_blank"&gt;SAS Help Center: Causal Mediation Analysis of a Time-to-Event Outcome&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 18:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880775#M43565</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-06-14T18:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble fitting proc causalmed model with continuous treatment/exposure and continuous mediators</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880811#M43567</link>
      <description>&lt;P&gt;Has anyone ever attempted to place covariates or an exposure in the model previously fitted as eg quadratic (so you would need to place more than 1 variable)&amp;nbsp; in the model? If yes, how did you set it up? And if not, are there other options you have used to ensure you are a) correctly modeling your continuous variables and b) fitting your outcome and mediator regression models appropriately?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 20:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trouble-fitting-proc-causalmed-model-with-continuous-treatment/m-p/880811#M43567</guid>
      <dc:creator>moni2</dc:creator>
      <dc:date>2023-06-14T20:31:54Z</dc:date>
    </item>
  </channel>
</rss>

