<?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: error 73-322 when using proc causalmed for survival analysis in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738584#M80493</link>
    <description>&lt;P&gt;The link I sent (SAS 9.4) has the syntax&lt;/P&gt;
&lt;UL class="aa-syntaxblock"&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN class="aa-stmt"&gt;&lt;A class="aa-stmt" tabindex="0" href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_causalmed_syntax09.htm" target="_blank"&gt;MODEL&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="aa-stmtopt"&gt;outcome&lt;SPAN class=" aa-keyword"&gt;=&lt;/SPAN&gt;effects &amp;lt;/ model-options&amp;gt;&lt;/SPAN&gt;;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;whereas the Viya documentation supports the syntax&lt;/P&gt;
&lt;UL class="aa-statementblock" type="none"&gt;
&lt;LI&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&lt;SPAN class="aa-statement"&gt;MODEL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="aa-statementoptional"&gt;outcome&lt;FONT color="#FF0000"&gt; &amp;lt;*censor(list)&amp;gt; &amp;lt;(outcome-options)&amp;gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=" aa-keyword"&gt;=&lt;/SPAN&gt;effects &amp;lt;/ model-options&amp;gt;&lt;/SPAN&gt;;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Therefore, the syntax you are trying to run is not supported in SAS 9.4.&lt;/P&gt;</description>
    <pubDate>Mon, 03 May 2021 13:46:18 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2021-05-03T13:46:18Z</dc:date>
    <item>
      <title>error 73-322 when using proc causalmed for survival analysis</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738487#M80489</link>
      <description>&lt;P&gt;I'm trying a SAS example from the SAS help on my laptop. It basically tells how to use proc causalmed for survival analysis. However, I kept getting "&lt;STRONG&gt;error 73-322:&amp;nbsp;Expecting an =.&lt;/STRONG&gt;" under "weeks*censor(1)".&lt;/P&gt;&lt;P&gt;I also tried my own code for the same analysis and got the same error.&lt;/P&gt;&lt;P&gt;Here is the link from SAS help web about proc causalmed with survival analysis:&lt;/P&gt;&lt;P&gt;&lt;A title="Proc Causalmed for survival analysis" href="https://documentation.sas.com/doc/en/statug/v_003/statug_causalmed_examples05.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/statug/v_003/statug_causalmed_examples05.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to fix it or do survival analysis in proc causalmed? I really appreciate it!&lt;/P&gt;&lt;P&gt;Below is the example code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc causalmed data=RedDye ciratio=log poutcomemod pmedmod;
   class RedDye Female Tumor;
   model Weeks*Censor(1) = RedDye | Tumor / aft;
   mediator Tumor(event='1') = RedDye(treat='3');
   covar Female;
   freq Freq;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 06:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738487#M80489</guid>
      <dc:creator>aw016</dc:creator>
      <dc:date>2021-05-03T06:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: error 73-322 when using proc causalmed for survival analysis</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738530#M80490</link>
      <description>&lt;P&gt;The doc you have linked to is for SAS Viya. If you are using SAS 9, you need to make sure you are looking at the version of the documentation that corresponds to your version of SAS. For example, here is a link to the SAS/STAT 15.1 doc, which shipped with SAS 9.4 M6:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_causalmed_syntax.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_causalmed_syntax.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will notice that the syntax for censored observations is not supported in SAS/STAT 15.1.&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 10:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738530#M80490</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-05-03T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: error 73-322 when using proc causalmed for survival analysis</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738581#M80492</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Thank you so much for your answer!&lt;/P&gt;&lt;P&gt;I didn't notice that doc was for SAS Viya, however, the link you posted seems to have the same statements as what I ran before. It still shows the same error.&lt;/P&gt;&lt;P&gt;Basically, my code is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc causalmed data=hw.final psummary;
 mediator waist_sc= n_mets_nowc; 
 model FT_CHD97*New_CHD97(1)=waist_sc n_mets_nowc;
 covar Age_V1 race sex SMOKING;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the error looks like this:&lt;/P&gt;&lt;PRE&gt;2    proc causalmed data=hw.final psummary;
NOTE: Writing HTML Body file: sashtml.htm
NOTE: PROCEDURE CAUSALMED used (Total process time):
      real time           0.16 seconds
      cpu time            0.14 seconds

NOTE: The SAS System stopped processing this step because of errors.
3     mediator waist_sc= n_mets_nowc;
4     model FT_CHD97*New_CHD97(1)=waist_sc n_mets_nowc;
                    -
                    73
                    76
ERROR 73-322: Expecting an =.
ERROR 76-322: Syntax error, statement will be ignored.
5     covar Age_V1 race sex SMOKING;
6    run;

&lt;/PRE&gt;&lt;P&gt;If I replaced New_CHD97(1) to New_CHD97(0), the error is still there.&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 13:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738581#M80492</guid>
      <dc:creator>aw016</dc:creator>
      <dc:date>2021-05-03T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: error 73-322 when using proc causalmed for survival analysis</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738584#M80493</link>
      <description>&lt;P&gt;The link I sent (SAS 9.4) has the syntax&lt;/P&gt;
&lt;UL class="aa-syntaxblock"&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN class="aa-stmt"&gt;&lt;A class="aa-stmt" tabindex="0" href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_causalmed_syntax09.htm" target="_blank"&gt;MODEL&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="aa-stmtopt"&gt;outcome&lt;SPAN class=" aa-keyword"&gt;=&lt;/SPAN&gt;effects &amp;lt;/ model-options&amp;gt;&lt;/SPAN&gt;;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;whereas the Viya documentation supports the syntax&lt;/P&gt;
&lt;UL class="aa-statementblock" type="none"&gt;
&lt;LI&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&lt;SPAN class="aa-statement"&gt;MODEL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="aa-statementoptional"&gt;outcome&lt;FONT color="#FF0000"&gt; &amp;lt;*censor(list)&amp;gt; &amp;lt;(outcome-options)&amp;gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=" aa-keyword"&gt;=&lt;/SPAN&gt;effects &amp;lt;/ model-options&amp;gt;&lt;/SPAN&gt;;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Therefore, the syntax you are trying to run is not supported in SAS 9.4.&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 13:46:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738584#M80493</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-05-03T13:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: error 73-322 when using proc causalmed for survival analysis</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738610#M80495</link>
      <description>&lt;P&gt;Oh, I see what you say, thank you, Rick_SAS!&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 14:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738610#M80495</guid>
      <dc:creator>aw016</dc:creator>
      <dc:date>2021-05-03T14:58:12Z</dc:date>
    </item>
  </channel>
</rss>

