[英]SAS Proc Freq Not Displaying Values
I am doing some simple cross tabulations using Proc Freq, but I'm noticing that the output SAS gives me doesn't contain any frequency counts;我正在使用 Proc Freq 做一些简单的交叉表,但我注意到 SAS 给我的输出不包含任何频率计数; I'm only getting percents.我只得到百分比。
Here is an example code that I ran in SAS (I am using SAS 9.4):这是我在 SAS 中运行的示例代码(我使用的是 SAS 9.4):
data test;
input year 1-5 group $6;
cards;
2018 A
2018 A
2018 B
2018 B
2019 A
2019 A
2019 A
2019 B
;
run;
proc freq data = test;
table year * group / norow nopercent;
run;
I'm expecting a table that has the frequency counts with the column percentage below, but instead, this is what SAS is giving me:我期待一个表的频率计数与下面的列百分比,但相反,这就是 SAS 给我的:
Does anyone know how I can get the frequency values to be shown?有谁知道我怎样才能显示频率值?
Thank you all for your help- I found the issue.谢谢大家的帮助 - 我发现了问题。 It looks like there was an issue with the cross-tab frequency template that came with SAS. SAS 附带的交叉表频率模板似乎存在问题。 I was able to restore it by using the following code:我能够使用以下代码恢复它:
proc template;
delete base.freq.crosstabfreqs;
run;
Thank you all for your help!谢谢大家的帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.