Colpctn

Reply
Contributor
Posts: 35

Colpctn

Hi,

proc tabulate data=Drug;

format gender gender. c2 prefer.;

class gender age c2/mlf mlf preloadfmt order=data ;

tables all='Base :All Respondents' c2*colpctn=''f=9.2 ,(all='Total' gender age)*N=''*f=7.0;

run;



the above syntax is not working for colpctn .Can some one correct the syntax.

the objective is to print the % values of c2 variable with total and gender as columns on which % is calculated.


Thanks

Frequent Contributor
Frequent Contributor
Posts: 83

Re: Colpctn

please post some sample data with expected output

Ask a Question
Discussion stats
  • 1 reply
  • 168 views
  • 0 likes
  • 2 in conversation