1017511
用ODS对 PROC UNIVARIATE 产生一个对一个变量的正态性检验结果。我产生不了那个数据集啊……
log如下:
363 ods output Testsfornormal=Normaltest;
364 proc univariate data=Ch2.Cars_1993 normal noprint;
365 var Weight;
366 run;
WARNING: Output 'Testsfornormal' was not created.
WARNING: Output 'testsfornormal' was not created.
NOTE: There were 92 observations read from the data set CH2.CARS_1993.
NOTE: PROCEDURE UNIVARIATE used:
real time 0.00 seconds
cpu time 0.00 seconds
367 ods output close;
368 proc print data=NormalTest;
ERROR: File WORK.NORMALTEST.DATA does not exist.
369 run;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE PRINT used:
real time 0.00 seconds
cpu time 0.00 seconds
产生不了所想要的数据集啊……
1017511
如果用output out=这个语句,只能得到一个OBS(由于样本量<2000,只显示Shapiro-Wilk的那个值……)
sophiayama
Try below code:
ods listing close;
ods output Testsfornormal=Normaltest;
proc univariate data=Ch2.Cars_1993 normal;
var Weight;
run;
ods listing.