[英]Difference between table and tables in proc freq in sas
Could anyone please tell the difference between table and tables in Proc freq with an example? 有人可以举例说明Proc freq中表格与表格之间的区别吗?
proc freq data= want;
table variable;
run;
proc freq data= want;
tables variable;
run;`
There is no difference. 没有区别。 The statement is the
TABLES
statement, but SAS will silently accept TABLE
as a synonym without issuing any warning or note. 该语句是
TABLES
语句,但是SAS将在不发出任何警告或注释的情况下静默接受TABLE
作为同义词。 Some miss spellings will generate just a warning while others will cause an error. 有些拼写错误只会产生警告,而其他拼写错误会导致错误。
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.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.