BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
dudu
Calcite | Level 5

Hi, everyone

I like to use proc tabulate to produce a table with multiple classes (to be Concatenated ) and variables, the code is fairly simple as 

 

Proc tabulate data=test;

class C1 C2 C3

var Va Vb Vc;

table C1 C2 C3, Va Vb Vc;

run;

 

However, the Tabulate procedure excludes all missing values in any classes (C1 C2 or C3). Is there a way to exclude only the relevant missing value in individual Class table (eg, only missing C1 values are excluded from C1, Va Vb Vc table). I can only achieve the desired results by kind of duplicating the code 3 times as

 

Proc tabulate data=test;

class C1

var Va Vb Vc;

table C1 , Va Vb Vc;

run;

 

Proc tabulate data=test;

class C2

var Va Vb Vc;

table C2 , Va Vb Vc;

run;

...

...

...

 

Thanks very much for your suggestions.

1 ACCEPTED SOLUTION

Accepted Solutions
Norman21
Lapis Lazuli | Level 10

Have you considered using the MISSING option in the CLASS statement?

Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

View solution in original post

2 REPLIES 2
Norman21
Lapis Lazuli | Level 10

Have you considered using the MISSING option in the CLASS statement?

Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

dudu
Calcite | Level 5

Hi, Norman21

 

Thanks a lot!! Problem solved though I don't want the missing data to be shown in the table...but that's the way SAS works


@Norman21 wrote:

Have you considered using the MISSING option in the CLASS statement?


 

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 807 views
  • 2 likes
  • 2 in conversation