<?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: Two table statements in PROC Tabulate due to different statistics and we want merge them into on in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965705#M375945</link>
    <description>&lt;P&gt;You want to know if you can form a table statement that generates one set of statistics for some rows (class vars) and other statistics for other rows (continuous vars).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The answer is no.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the greater question is why?&amp;nbsp; Are you trying to generate a specific sequence of variables in your report?&lt;/P&gt;</description>
    <pubDate>Sun, 04 May 2025 20:36:10 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2025-05-04T20:36:10Z</dc:date>
    <item>
      <title>Two table statements in PROC Tabulate due to different statistics and we want merge them into one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965699#M375942</link>
      <description>&lt;P&gt;We use different statistics for continuous and category variables, respectively. We have to use two table statement. Is there any way to show them in one table? Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data = d202_raw;
title 'Summary of patient characterisitcs';
class AF gender smoker CHF DM Stroke Hypertension HFstage hypoalbuminemia RIFLE
indication1 CYP2C9 VKORC1
Amiodarone Statin Antiplatelets
;
var ageY wt bsa followUp
alb1 alb2 alb3 alb4 alb5
;
table
ageY
wt
bsa
followUp
alb1
alb2
alb3
alb4
alb5
, AF = 'Atrial fibrillation' * (N Mean STD Q1 Q3)
all = 'Overall' * (N Mean STD Q1 Q3);
table
gender
smoker
CHF
DM
Stroke
Hypertension
HFstage
hypoalbuminemia
RIFLE
indication1
CYP2C9
VKORC1
Amiodarone
Statin
Antiplatelets
, AF = 'Atrial fibrillation' * (N colpctn = '%')
all = 'Overall' * (N colpctn = '%')
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 May 2025 19:18:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965699#M375942</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-04T19:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Two table statements in PROC Tabulate due to different statistics and we want merge them into on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965705#M375945</link>
      <description>&lt;P&gt;You want to know if you can form a table statement that generates one set of statistics for some rows (class vars) and other statistics for other rows (continuous vars).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The answer is no.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the greater question is why?&amp;nbsp; Are you trying to generate a specific sequence of variables in your report?&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 20:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965705#M375945</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2025-05-04T20:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Two table statements in PROC Tabulate due to different statistics and we want merge them into on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965710#M375947</link>
      <description>Hi:&lt;BR /&gt;  This looks like the type of demographic table that is typically generated either with a DATA step or with PROC REPORT. There have been many previous forums postings about how to generate this type of table. And, a lot of user group papers, too. If you search on &lt;A href="http://www.lexjansen.com" target="_blank"&gt;www.lexjansen.com&lt;/A&gt; for "demographic tables" you will find a variety of papers on the topic.&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 04 May 2025 21:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965710#M375947</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2025-05-04T21:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Two table statements in PROC Tabulate due to different statistics and we want merge them into on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965715#M375951</link>
      <description>Hello, Cynthia&lt;BR /&gt;&lt;BR /&gt;Thank you very much and now I am enjoying the %TABLEN macro, which is perfect for the demographic table generation.&lt;BR /&gt;&lt;BR /&gt;Have a nice day!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/pharmasug/2020/AD/PharmaSUG-2020-AD-088.pdf" target="_blank"&gt;https://www.lexjansen.com/pharmasug/2020/AD/PharmaSUG-2020-AD-088.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 05 May 2025 02:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965715#M375951</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-05T02:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Two table statements in PROC Tabulate due to different statistics and we want merge them into on</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965716#M375952</link>
      <description>Thanks for the response and I solved the issue by %TABLEN macro.</description>
      <pubDate>Mon, 05 May 2025 02:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-table-statements-in-PROC-Tabulate-due-to-different/m-p/965716#M375952</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-05T02:35:24Z</dc:date>
    </item>
  </channel>
</rss>

