BookmarkSubscribeRSS Feed
Sas_Geek
Calcite | Level 5

Hi,

I'm running following code:

proc tabulate;

class year patient_sex_text;

tables (all year)*(all patient_sex_text), n pctn<all patient_sex_text>;

run;

and following is the output I'm getting:

N

PctN

All

All

2290

100.00

Patient_Sex_Text

961

100.00

Female

Male

1329

100.00

year

1644

100.00

05/10-04/11

All

Patient_Sex_Text

675

41.06

Female

Male

969

58.94

05/11-04/12

All

646

100.00

Patient_Sex_Text

286

44.27

Female

Male

360

55.73

How can I change the column percent of the yellow highlighted cells from 100 to 41.97 and 58.03?

Thanks in advance!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 0 replies
  • 613 views
  • 0 likes
  • 1 in conversation