<?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 Proc Causalmed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/761650#M37175</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using proc causalmed for survey data and would like to include sampling weights. However, I am unsure where to include the weight statement. I tried to include it after the covar statement but receive an error in SAS saying that the weight statement was out of order. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC CAUSALMED DATA=;&lt;BR /&gt;CLASS;&lt;BR /&gt;MEDIATOR;&lt;BR /&gt;MODEL;&lt;BR /&gt;COVAR;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Aug 2021 06:39:28 GMT</pubDate>
    <dc:creator>violet77</dc:creator>
    <dc:date>2021-08-15T06:39:28Z</dc:date>
    <item>
      <title>Proc Causalmed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/761650#M37175</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using proc causalmed for survey data and would like to include sampling weights. However, I am unsure where to include the weight statement. I tried to include it after the covar statement but receive an error in SAS saying that the weight statement was out of order. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC CAUSALMED DATA=;&lt;BR /&gt;CLASS;&lt;BR /&gt;MEDIATOR;&lt;BR /&gt;MODEL;&lt;BR /&gt;COVAR;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 06:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/761650#M37175</guid>
      <dc:creator>violet77</dc:creator>
      <dc:date>2021-08-15T06:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Causalmed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/761677#M37178</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have never used PROC CAUSALMED (although I know what it is meant for) but I do not think the WEIGHT statement should get a particular place in the order of statements. Same for the COVAR statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it's best that you show us the LOG.&lt;/P&gt;
&lt;P&gt;When you reply, hit the &amp;lt;/&amp;gt; (Insert Code) button in the toolbar and paste the LOG in the pop-up window.&lt;/P&gt;
&lt;P&gt;That way the LOG preserves structure and formatting which makes it easier to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 12:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/761677#M37178</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-08-15T12:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Causalmed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/761684#M37179</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/160330"&gt;@violet77&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The WEIGHT statement of PROC CAUSALMED was introduced in SAS/STAT 15.1. I'm using SAS/STAT 14.3 as part of SAS 9.4M5, where it was not available yet (compare the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_causalmed_syntax.htm" target="_blank" rel="noopener"&gt;14.3 documentation&lt;/A&gt; to the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_causalmed_syntax.htm" target="_blank" rel="noopener"&gt;15.1 documentation&lt;/A&gt;). So, for obvious reasons, I get the error message&lt;/P&gt;
&lt;PRE&gt;20      weight w;
        ------
        180
&lt;FONT color="#FF0000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;which I suspect is the same as you got.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check your SAS version with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysvlong;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or the SAS/STAT version with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm afraid I wouldn't know a workaround (other than an upgrade) if your version was the same as mine or older.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 15:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/761684#M37179</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-08-15T15:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Causalmed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/761708#M37180</link>
      <description>&lt;P&gt;Thanks! I have SAS/STAT 14.3. I appreciate your help! I will see if I can upgrade to 15.1&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 21:49:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/761708#M37180</guid>
      <dc:creator>violet77</dc:creator>
      <dc:date>2021-08-15T21:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Causalmed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/764383#M37326</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was able to get SAS/STAT 15.1. However, I ran into another issue. When I estimated my model with the weight statement, I received this message:&lt;/P&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;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 02:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/764383#M37326</guid>
      <dc:creator>violet77</dc:creator>
      <dc:date>2021-08-27T02:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Causalmed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/764411#M37328</link>
      <description>&lt;P&gt;This is most likely an issue with your input data. Please open a new thread (e.g., with subject line "Proc Causalmed: covariance matrix not positive definite") in this forum ("Statistical Procedures") so that all experts will see it. I'm still on SAS/STAT 14.3 and hence couldn't run your code even if I had similar input data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 07:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Causalmed/m-p/764411#M37328</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-08-27T07:10:05Z</dc:date>
    </item>
  </channel>
</rss>

