2017-10-25 11 views
1

Proc freqのテーブルとテーブルの違いを教えてください。sasのproc freqのテーブルとテーブルの違い

proc freq data= want; 
table variable; 
run; 

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

詳細を指定して詳細を入力する必要があります。また、どのコードが(あなたのsasタグに固有のような)コードであるかわからないので、私はちょうど完全に私の深みから出ることができますが、それは私にとってナンセンスのようです。 – NonCreature0714

+0

より良いコードの書式 – xiaodai

+0

@ NonCreature0714あなたが言語を理解していないという質問は、コメントするよりも単なるままにする方が良いです。この問題を解決するには、 Skipはレビューで非常に有効な選択肢であり、おそらく最も一般的に選択されるべきものです。 – Joe

答えて

3

違いはありません。ステートメントは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. 
関連する問題