The problem is that what you want is to double count in the ALL row (actually "up to ten" count), for which tabulate does not provide a mechanism.
I suggest a data set VIEW with a new variable, to be included in the proc tabulate.
data vneed / view=vneed;
set have (keep=columnvar rowvar1-rowvar10);
row_count=n(of rowvar:);
run;
proc tabulate data=vneed;
class columnvar rowvar1-rowvar2;
var row_count;
table rowvar1-rowvar2
row_count*sum='Col Total'
,columnvar;
run;
Hi mkeintz,
thanks for you suggestion.
Unfortunately, the code doesn't seem to work: the row_count always displays a zero and the table shows only one value of each variable.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.