<?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: Creating simple comorbidity index in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Creating-simple-comorbidity-index/m-p/560318#M74866</link>
    <description>&lt;P&gt;are you looking for something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
DATA CP;
SET M.CP; 
COMORBID = 0;
COMORBID = sum(EVER_ASTHMA, EVER_EMPHYS, EVER_CB, EVER_DIAB, EVER_TB, EVER_HD, EVER_MIOC, EVER_RESP, EVER_HBP);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 21 May 2019 00:27:52 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2019-05-21T00:27:52Z</dc:date>
    <item>
      <title>Creating simple comorbidity index</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-simple-comorbidity-index/m-p/560317#M74865</link>
      <description>&lt;P&gt;Hello! I am a novice user and have looked through the forum for hours trying to find a solution to this problem to no avail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have survey health data for over 200,000 individuals (each row represents a unique individual) and I would like to create a simple comorbidity index. I have 9 variables (columns) representing 9 medical conditions (all binary numeric, coded as 0 = no and 1 = yes), and would like to create a new variable which tells me how many individuals report having 0, 1, 2, 3 or 4 or more medical conditions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry I don't know how to add a sample of the data! This is as far as I've gotten - creating a new variable that is able to indicate that a person has all 9 comorbid diseases, or none of the 9 diseases. I'm stuck at being able to indicate if they have three of the 9 diseases, how to indicate comorbid = 3, and if they have any two of the 9 diseases, how to indicate comorbid = 2, etc....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA CP;
SET M.CP; 
COMORBID = .;
IF (EVER_ASTHMA = 1) AND (EVER_EMPHYS =1) AND (EVER_CB =1) AND (EVER_DIAB=1) AND (EVER_TB=1) AND (EVER_HD=1) AND (EVER_MIOC=1) AND (EVER_RESP=1) AND (EVER_HBP=1) THEN COMORBID = 9;
IF (EVER_ASTHMA = 0) AND (EVER_EMPHYS =0) AND (EVER_CB =0) AND (EVER_DIAB=0) AND (EVER_TB=0) AND (EVER_HD=0) AND (EVER_MIOC=0) AND (EVER_RESP=0) AND (EVER_HBP=0) THEN COMORBID = 0;&lt;BR /&gt;RUN; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 00:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-simple-comorbidity-index/m-p/560317#M74865</guid>
      <dc:creator>terra1</dc:creator>
      <dc:date>2019-05-21T00:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating simple comorbidity index</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-simple-comorbidity-index/m-p/560318#M74866</link>
      <description>&lt;P&gt;are you looking for something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
DATA CP;
SET M.CP; 
COMORBID = 0;
COMORBID = sum(EVER_ASTHMA, EVER_EMPHYS, EVER_CB, EVER_DIAB, EVER_TB, EVER_HD, EVER_MIOC, EVER_RESP, EVER_HBP);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 May 2019 00:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-simple-comorbidity-index/m-p/560318#M74866</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-05-21T00:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating simple comorbidity index</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-simple-comorbidity-index/m-p/560338#M74867</link>
      <description>&lt;P&gt;Thanks so much!! This is exactly what I was looking for !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 03:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-simple-comorbidity-index/m-p/560338#M74867</guid>
      <dc:creator>terra1</dc:creator>
      <dc:date>2019-05-21T03:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating simple comorbidity index</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-simple-comorbidity-index/m-p/560339#M74868</link>
      <description>&lt;P&gt;you are welcome.&lt;/P&gt;
&lt;P&gt;glad it was a simple issue to resolve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 03:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-simple-comorbidity-index/m-p/560339#M74868</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-05-21T03:48:40Z</dc:date>
    </item>
  </channel>
</rss>

