<?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: Patient Demographic Table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733682#M228607</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;This is probably stata data, which I could import with a simple import procedure.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import file="\projectdata020719.dta" out=have;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-04-14_20h14_43.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57620i6E0DA8C3D2D62038/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-04-14_20h14_43.png" alt="2021-04-14_20h14_43.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 11:50:36 GMT</pubDate>
    <dc:creator>japelin</dc:creator>
    <dc:date>2021-04-14T11:50:36Z</dc:date>
    <item>
      <title>Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733646#M228587</link>
      <description>&lt;P&gt;Hi everyone, I'm struggling to construct the three data tables below and I would really appreciate it if someone could help me. The variables highlighted in yellow are the ones listed in the data set. I also attached the data dictionary to this post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-04-14 at 4.03.48 AM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57618i496961268346B3A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-04-14 at 4.03.48 AM.png" alt="Screen Shot 2021-04-14 at 4.03.48 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 09:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733646#M228587</guid>
      <dc:creator>u49589061</dc:creator>
      <dc:date>2021-04-14T09:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733651#M228590</link>
      <description>&lt;P&gt;What is raw data?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 09:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733651#M228590</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-04-14T09:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733654#M228592</link>
      <description>&lt;P&gt;I am unable to attach the original data set to this post because the file size is too big. But the variables in the raw data set are highlighted in yellow.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 09:46:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733654#M228592</guid>
      <dc:creator>u49589061</dc:creator>
      <dc:date>2021-04-14T09:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733656#M228594</link>
      <description>&lt;P&gt;From where do you get the data (so we might be able to download an example ourselves)?&lt;/P&gt;
&lt;P&gt;In which form do you get it (CSV or other text format, transport file, ...)?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 09:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733656#M228594</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-14T09:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733659#M228596</link>
      <description>&lt;P&gt;Please provide just some observations.&lt;/P&gt;
&lt;P&gt;For example, a dataset of 10obs can be created as follows&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;
  set have(obs=10);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use datalines to describe the sample data.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 10:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733659#M228596</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-04-14T10:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733660#M228597</link>
      <description />
      <pubDate>Wed, 14 Apr 2021 10:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733660#M228597</guid>
      <dc:creator>u49589061</dc:creator>
      <dc:date>2021-04-14T10:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733661#M228598</link>
      <description>&lt;P&gt;Please let me know if this works.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 10:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733661#M228598</guid>
      <dc:creator>u49589061</dc:creator>
      <dc:date>2021-04-14T10:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733662#M228599</link>
      <description>&lt;P&gt;So what exactly do you want to do with this data?&lt;BR /&gt;Are you having trouble importing the data? Or converting it?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you simply want to extract the variables, you can do that with the following...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  keep AGEATINTERVIEW GENDER MARITALSTATUS;/* and other variables */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 10:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733662#M228599</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-04-14T10:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733665#M228600</link>
      <description>&lt;P&gt;I want to construct the data table in the photo below, but I don't know how to in sas&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-04-14 at 5.30.36 AM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57619i224B8B28A67F6037/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-04-14 at 5.30.36 AM.png" alt="Screen Shot 2021-04-14 at 5.30.36 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 10:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733665#M228600</guid>
      <dc:creator>u49589061</dc:creator>
      <dc:date>2021-04-14T10:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733672#M228602</link>
      <description>&lt;P&gt;The .dta file is some kind of binary data file. From which application does it originate?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 10:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733672#M228602</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-14T10:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733682#M228607</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;This is probably stata data, which I could import with a simple import procedure.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import file="\projectdata020719.dta" out=have;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-04-14_20h14_43.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57620i6E0DA8C3D2D62038/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-04-14_20h14_43.png" alt="2021-04-14_20h14_43.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733682#M228607</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-04-14T11:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733692#M228614</link>
      <description>I know the basic processing of sas. I just don't know how to put get multiple subcategories in the first row of my table so that I can properly label my observations.</description>
      <pubDate>Wed, 14 Apr 2021 11:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733692#M228614</guid>
      <dc:creator>u49589061</dc:creator>
      <dc:date>2021-04-14T11:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733696#M228616</link>
      <description>&lt;P&gt;The yellow cells in your Excel match the variable names in the dataset, so all you need is a KEEP statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need more than that, show an example of the "want" dataset(s).&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/733696#M228616</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-14T11:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Demographic Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/734007#M228710</link>
      <description>&lt;P&gt;I created this sample program thinking that you simply want to divide the data into three data sets.&lt;/P&gt;
&lt;P&gt;Can you show me an image of the finished product, even in Excel? (Variable name in the first line, data in the second and subsequent lines)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import file=".\projectdata020719.dta"
            out=have;
run;

data DM;
  set have;
  keep seqn ageatinterview gender maritalstatus education householdincome;
run; 

data RF(label='Risk factors and Medical fix');
  set have;
  keep seqn SMOKENOW EVERSMK100CIGS HICHOL_HX;
;
run; 
data CP(label='Clinical presentation');
  set have;
  keep seqn BPXSAR BMI MORTSTAT DIABETES_HX LIVER_HX THYROID_HX AVE_DAILY_PA;
  where AVE_DAILY_PA=1;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Apr 2021 01:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Patient-Demographic-Table/m-p/734007#M228710</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-04-15T01:29:47Z</dc:date>
    </item>
  </channel>
</rss>

