我现在有个m0表格分别有venue, ending_week, types_of_games, total_seats, capacity, capacity_used这些值
其中capacity_used=total_seats / capacity
然后我想知道某一types_of_games的capacity_used数值, 但是tabulate 好像只能显示简单平均的数值, 不知道大家有没有方法可以做到我想要的效果? 我写的程序如下:
proc tabulate data=m0 alpha=0.05;
var capacity_used;
class venue ending_week;
table ending_week='',venue*capacity_used=''*(mean*f=9.5);
where type_of_game not in ('Others')
run;
我发现这个结果出来的数字是平均值而不是加权平均值, 因为capacity_used = total seats / capacity 我有什么方法可以显示total seats not in others / total capacity not in others? 谢谢了!