The SAS Output Delivery System and reporting techniques

n = 'n' * f = 8. what is the meaning of 'f' here?

Accepted Solution Solved
Reply
Contributor
Posts: 31
Accepted Solution

n = 'n' * f = 8. what is the meaning of 'f' here?

proc tabulate data = demog missing;

class trt gender race;

var age;

table age = 'Age' *(n = 'n' * f = 8.mean = 'Mean' * f = 5.1

std = 'Standard Deviation' * f = 5.1

min = 'Min' * f = 3. Max = 'Max' * f = 3.)

gender = 'Gender' *

(n='n' * f = 3. colpctn = '%' * f = 4.1)

race = 'Race' *

(n = 'n' * f = 3. colpctn = '%' * f = 4.1),

(trt = " ") (all = 'Overall');

format trt trt. race race. gender gender.;

title1 'Table 5.1';

title2 'Demographics and Baseline Characteristics';

footnote1 "* Other includes Asian, Native American, and other"

" races.";

footnote2 "Created by %sysfunc(getoption(sysin)) on"

" &sysdate9..";

run;

In this code, what is the meaning of 'f'? Is it freq?


Accepted Solutions
Solution
‎08-07-2015 04:14 PM
Super User
Posts: 19,157

Re: n = 'n' * f = 8. what is the meaning of 'f' here?

Format - what format to apply to the display of the measure in the tabulate table.

View solution in original post


All Replies
Solution
‎08-07-2015 04:14 PM
Super User
Posts: 19,157

Re: n = 'n' * f = 8. what is the meaning of 'f' here?

Format - what format to apply to the display of the measure in the tabulate table.

Contributor
Posts: 31

Re: n = 'n' * f = 8. what is the meaning of 'f' here?

Thank you

Super User
Posts: 11,134

Re: n = 'n' * f = 8. what is the meaning of 'f' here?

I have never figured out why SAS programmed proc tabulate to display n or nmiss , which are counts, with 2 decimals by default.

SAS Super FREQ
Posts: 8,820

Re: n = 'n' * f = 8. what is the meaning of 'f' here?

Hi: In SAS 9.4, my TABULATE does not use decimal places for N or NMISS when I take all the defaults. I am not sure when this changed.

cynthia

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 665 views
  • 0 likes
  • 4 in conversation