sas中proc freq中表格和表格之间的差异

sas中proc freq中表格和表格之间的差异,sas,Sas,有人能举个例子来说明表和Proc freq中的表之间的区别吗 proc freq data= want; table variable; run; proc freq data= want; tables variable; run;` 没有区别。该语句是TABLES语句,但SAS将默默地接受TABLE作为同义词,而不会发出任何警告或注释。一些拼写错误只会生成警告,而其他拼写错误则会导致错误 1668 proc freq data= sashelp.class; 1669 tablex

有人能举个例子来说明表和Proc freq中的表之间的区别吗

proc freq data= want;
table variable;
run;

proc freq data= want;
tables variable;
run;`

没有区别。该语句是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.

没有区别。该语句是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.

你需要更具体,提供更多细节。另外,我不知道这是什么样的代码,如果它是特定于您的sas标签,所以我可以完全超出我的深度,但它看起来像胡说八道。更好的代码formatting@NonCreature0714最好不要去问那些你不懂语言的问题,而不要去评论它们。除了现在固定的格式之外,这个问题还可以。在评论中,跳过是一个非常有效的选择,而且可能应该是最常用的选择。@Joe谢谢Joe。这让我很困惑,我不害怕承认,所以下次我就不说了。你需要更具体,提供更多细节。另外,我不知道这是什么样的代码,如果它是特定于您的sas标签,所以我可以完全超出我的深度,但它看起来像胡说八道。更好的代码formatting@NonCreature0714最好不要去问那些你不懂语言的问题,而不要去评论它们。除了现在固定的格式之外,这个问题还可以。在评论中,跳过是一个非常有效的选择,而且可能应该是最常用的选择。@Joe谢谢Joe。这让我很困惑,我不怕承认,所以下次我就跳过。