BookmarkSubscribeRSS Feed
JasonNC
Quartz | Level 8

Hi,

i want my proc freq only to do counts and not percent.

so what i did was

PROC FREQ DATA=TEMP ORDER=FREQ NOPRINT;

TABLES X * Y / NOPERCENT OUT=TEMP2;

RUN;

but even though i mention no percent my out put is showing

X           Y                    COUNT        PERCENT

abc       123                    2                40

I don't want the percent to be calculated.

Am i doing any thing wrong or is there any other option i have to use to suppress it.

;

5 REPLIES 5
art297
Opal | Level 21

If you don't want it in the output file, you can always just drop it.  e.g.,

PROC FREQ DATA=sashelp.class ORDER=FREQ NOPRINT;

TABLES age * sex / OUT=TEMP2 (drop=percent);

RUN;

JasonNC
Quartz | Level 8

Hi Art,

Instead of droping it is there any way i can tell Proc Freq not to calculate Percent

art297
Opal | Level 21

Not that I'm aware of.

Reeza
Super User

The ODS tables don't give the percent but they give a bunch of other columns that are probably just as useless, so dropping is your best option.

proc freq data=sashelp.class;

    tables sex*age/ nopercent nocol norow out=temp2;

    ods output crosstabfreqs=temp3;

run;

JasonNC
Quartz | Level 8

Hey Reeza,

Thanks for your reply.That's good to know.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 5 replies
  • 17017 views
  • 1 like
  • 3 in conversation