有没有人可以通过示例告诉Proc freq中的表和表之间的区别?
proc freq data= want;
table variable;
run;
proc freq data= want;
tables variable;
run;`
答案 0 :(得分:4)
没有区别。该声明是TABLES
声明,但SAS将默默接受TABLE
作为同义词而不发出任何警告或注释。一些错过拼写只会产生警告,而其他拼写会导致错误。
1668 proc freq data= sashelp.class;
1669 tablex age name;
------
1
WARNING 1-322: Assuming the symbol TABLE was misspelled as tablex.
1670 run;
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
1671
1672 proc freq data= sashelp.class;
1673 tabl age name;
----
1
WARNING 1-322: Assuming the symbol TABLE was misspelled as tabl.
1674 run;
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
1675
1676 proc freq data= sashelp.class;
1677 tab age name;
---
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
1678 run;
NOTE: The SAS System stopped processing this step because of errors.