<?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: PS Match and Mahalanobis Distance in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PS-Match-and-Mahalanobis-Distance/m-p/919223#M41174</link>
    <description>&lt;P&gt;If GENDER were taken out of the CLASS statement, and if gender were coded as, say 0 and 1, wouldn't it then serve your purpose?&amp;nbsp; I believe that's all you would need to account for the confounding of GENDER with AGE &amp;amp; BMI in assignment of DRUG.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 02:07:34 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2024-03-07T02:07:34Z</dc:date>
    <item>
      <title>PS Match and Mahalanobis Distance</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PS-Match-and-Mahalanobis-Distance/m-p/919202#M41173</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running the following code and am getting the error that "&lt;STRONG&gt;The variable Gender in the STAT=MAH option is in the class list&lt;/STRONG&gt;".&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc psmatch data=drugs region=cs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; class Drug Gender;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; psmodel Drug(Treated='Drug_X')= Gender Age BMI;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; match method=greedy(k=1)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distance=mah(lps var=(Age BMI Gender)) caliper=0.2&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stat = lps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight=none;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; assess lps var=(Gender Age BMI);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output out(obs=match)=OutEx7 matchid=_MatchID;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to see of there was a way to include categorical variables in the Mahalanobis distance calculation in the above procedure. Any suggestion would be really appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 20:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PS-Match-and-Mahalanobis-Distance/m-p/919202#M41173</guid>
      <dc:creator>SG1993</dc:creator>
      <dc:date>2024-03-06T20:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: PS Match and Mahalanobis Distance</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PS-Match-and-Mahalanobis-Distance/m-p/919223#M41174</link>
      <description>&lt;P&gt;If GENDER were taken out of the CLASS statement, and if gender were coded as, say 0 and 1, wouldn't it then serve your purpose?&amp;nbsp; I believe that's all you would need to account for the confounding of GENDER with AGE &amp;amp; BMI in assignment of DRUG.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 02:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PS-Match-and-Mahalanobis-Distance/m-p/919223#M41174</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2024-03-07T02:07:34Z</dc:date>
    </item>
  </channel>
</rss>

