在教程上学过关于 SAS 单样本 T-检验的程序语句:proc ttest ho=5,实际运行无法通过,请高手指教:
data t01;
input x @@;
cards;
1 2 3 5 5 6 7 8 9
;
proc ttest ho=5;
var x;
run;
交付运行结果如下:
92 proc ttest ho=5;
--
22
76
ERROR 22-322: Syntax error, expecting one of the following: ;, ALPHA, CI, COCHRAN, DATA, H0.
ERROR 76-322: Syntax error, statement will be ignored.
93 var x;
94 run;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE TTEST used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds