<?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: PROC Tabulate omit one observation but PROC Univariate not in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965690#M48477</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184847"&gt;@TomHsiung&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thread updated. Thanks&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Question updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not dump large amounts of code or log without explaining the problem clearly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please read clearly, I wanted to see the &lt;FONT color="#FF0000"&gt;&lt;EM&gt;entire log for PROC TABULATE&lt;/EM&gt;&lt;/FONT&gt; and not the rest of what you showed.&lt;/P&gt;</description>
    <pubDate>Sun, 04 May 2025 18:52:53 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2025-05-04T18:52:53Z</dc:date>
    <item>
      <title>PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965687#M48474</link>
      <description>&lt;P&gt;Logs of PROC Tabulate&lt;/P&gt;
&lt;PRE&gt;80   proc tabulate data = d202_raw;
81   title 'Summary of patient characterisitcs';
82   class AF gender smoker CHF DM Stroke Hypertension HFstage hypoalbuminemia RIFLE
83   indication1 CYP2C9 VKORC1
84   Amiodarone Heparin Statin Antiplatelets
85   ;
86   var ageY wt bsa followUp
87   alb1 alb2 alb3 alb4 alb5
88   ;
89   table
90   ageY
91   wt
92   bsa
93   followUp
94   alb1
95   alb2
96   alb3
97   alb4
98   alb5
99   , AF = 'Atrial fibrillation' * (N Mean STD Q1 Q3)
100  all = 'Overall' * (N Mean STD Q1 Q3);
101  table
102  gender
103  smoker
104  CHF
105  DM
106  Stroke
107  Hypertension
108  HFstage
109  hypoalbuminemia
110  RIFLE
111  indication1
112  CYP2C9
113  VKORC1
114  Amiodarone
115  Heparin
116  Statin
117  Antiplatelets
118  , AF = 'Atrial fibrillation' * (N colpctn = '%')
119  all = 'Overall' * (N colpctn = '%')
120  ;
121  run;
NOTE: There were 200 observations read from the data set WORK.D202_RAW.
NOTE: The PROCEDURE TABULATE printed pages 134-139.
NOTE: PROCEDURE TABULATE used (Total process time):
      real time           0.05 seconds
      user cpu time       0.05 seconds
      system cpu time     0.02 seconds
      memory              11064.26k
      OS Memory           55500.00k
      Timestamp           05/04/2025 06:42:43 PM
      Step Count                        204  Switch Count  0
      Page Faults                       0
      Page Reclaims                     2161
      Page Swaps                        0
      Voluntary Context Switches        614
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           616&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PROC Univariate could get the 200 observation. However, the PROC Tabulate only report the results of 199 observation. I don't know which observation was removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC Tabulate script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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 Heparin 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
Heparin
Statin
Antiplatelets
, AF = 'Atrial fibrillation' * (N colpctn = '%')
all = 'Overall' * (N colpctn = '%')
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log of PROC Univariate:&lt;/P&gt;
&lt;PRE&gt;80   proc univariate data = d202_raw;
81   var ageY;
82   run;
NOTE: The PROCEDURE UNIVARIATE printed pages 140-141.
NOTE: PROCEDURE UNIVARIATE used (Total process time):
      real time           0.05 seconds
      user cpu time       0.05 seconds
      system cpu time     0.01 seconds
      memory              1701.81k
      OS Memory           47528.00k
      Timestamp           05/04/2025 06:46:08 PM
      Step Count                        209  Switch Count  0
      Page Faults                       0
      Page Reclaims                     57
      Page Swaps                        0
      Voluntary Context Switches        0
      Involuntary Context Switches      1
      Block Input Operations            0
      Block Output Operations           8&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 19:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965687#M48474</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-04T19:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965688#M48475</link>
      <description>&lt;P&gt;I'm really having trouble grasping the problem. You say "However, the PROC Tabulate only report the results of 199 observation" but clearly PROC TABULATE log indicates it used 200 observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the &lt;FONT color="#FF0000"&gt;&lt;EM&gt;entire&lt;/EM&gt; &lt;/FONT&gt;log for PROC TABULATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 18:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965688#M48475</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-04T18:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965689#M48476</link>
      <description>Thread updated. Thanks</description>
      <pubDate>Sun, 04 May 2025 18:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965689#M48476</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-04T18:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965690#M48477</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184847"&gt;@TomHsiung&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thread updated. Thanks&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Question updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not dump large amounts of code or log without explaining the problem clearly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please read clearly, I wanted to see the &lt;FONT color="#FF0000"&gt;&lt;EM&gt;entire log for PROC TABULATE&lt;/EM&gt;&lt;/FONT&gt; and not the rest of what you showed.&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 18:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965690#M48477</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-04T18:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965692#M48478</link>
      <description>&lt;P&gt;The result of the PROC Tabulate only counted 199 observations. See the screenshot.&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="Screenshot 2025-05-05 at 2.51.38 AM.png" style="width: 234px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106688i861710E5E2B1F270/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-05-05 at 2.51.38 AM.png" alt="Screenshot 2025-05-05 at 2.51.38 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 18:52:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965692#M48478</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-04T18:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965693#M48479</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to request you provide the information in a new thread, I want to the entire code for PROC TABULATE as it appears in the log and NOT all that other stuff in the log you showed us (please read carefully). Then I want to see the output table. If you provide this properly, I won't have to scroll upwards 12 screens so I can see the code and then scroll downwards 12 screens to see the output, as I do now.&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 18:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965693#M48479</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-04T18:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965694#M48480</link>
      <description>Hi, Miller&lt;BR /&gt;&lt;BR /&gt;Thanks for the tip. But except for the SAS Viya for learners web interface log tab, where else should I seek for the detail logs of PROC Tabulate?</description>
      <pubDate>Sun, 04 May 2025 19:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965694#M48480</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-04T19:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965696#M48481</link>
      <description>&lt;P&gt;I use the elimination method to exclude one variable at one time. Finally, I found the category variable of 'Heparin' has an observation with its value missing. I think it was the cause. I have to remove this category variable from the PROC Tabulate, because I am not able to access the original dataset now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Screenshot of the original dataset.&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="Screenshot 2025-05-05 at 3.09.06 AM.png" style="width: 240px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106689i5B98DE839B481179/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-05-05 at 3.09.06 AM.png" alt="Screenshot 2025-05-05 at 3.09.06 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 19:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965696#M48481</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-04T19:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965698#M48482</link>
      <description>&lt;P&gt;Issue resolved, the cause confirmed by this screenshot of PROC Tabulate. Thanks everyone for the help.&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="Screenshot 2025-05-05 at 3.13.33 AM.png" style="width: 235px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106690i60B24798E02B2CD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-05-05 at 3.13.33 AM.png" alt="Screenshot 2025-05-05 at 3.13.33 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 19:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965698#M48482</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-04T19:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965702#M48483</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184847"&gt;@TomHsiung&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;Thanks for the tip. But except for the SAS Viya for learners web interface log tab, where else should I seek for the detail logs of PROC Tabulate?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Really unclear what you are asking for. I want the entire log for PROC TABULATE, and not the other stuff that appears in the log before or after PROC TABULATE.&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 19:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965702#M48483</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-04T19:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965703#M48484</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184847"&gt;@TomHsiung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are constantly changing the first post, and so the discussion becomes unintelligible. Please don't do that in the future. If you need to change or add something, change it by adding another post to the thread.&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 19:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965703#M48484</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-04T19:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965752#M48489</link>
      <description>Thanks for your attention to my thread. I will check the log before posting next time.</description>
      <pubDate>Mon, 05 May 2025 13:37:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965752#M48489</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-05T13:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate omit one observation but PROC Univariate not</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965787#M48490</link>
      <description>&lt;P&gt;I realize there is already a solution for this, but the reason for the difference is the use of Class variables in PROC TABULATE. If any of the variables on the Class statement have a missing value, regardless of whether they are used in the TABLE statement, then those observations will be excluded from analysis. You can add the MISSING option to the PROC TABULATE statement to include those observations and see where the missing values exist:&lt;/P&gt;
&lt;P&gt;proc tabulate data=d202_raw MISSING;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your PROC UNIVARIATE code, you are only using a VAR statement, so all observations are included in the analysis.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 17:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Tabulate-omit-one-observation-but-PROC-Univariate-not/m-p/965787#M48490</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-05-05T17:28:18Z</dc:date>
    </item>
  </channel>
</rss>

