3.2单变量分析 proc univariate
语句:
proc univariate data=data-set-name mu0=... loccount;
var var1;
run;
输出结果:
1.moments
N, mean,std deviation,skewness, uncorrected SS,sum weights,sum observaions,varince,kurtosis,corrected SS,coeff variation,std error mean
2.basic statistical measures
location:mean,median,mode
variability:range ,variance, std variation, interquartile range
3.tests for location:mu0=...
对均值为...的假设检验结果
4.location counts
loccount指打印输出大于、不等于、小于被检验均值的所有值
5.extreme observations
默认输出5个极端观测值,可用NEXTROBS更改默认
附 :也可对一个以上变量进行单变量分析
代码如下:
proc univariate data=data-set-name mu0= num1 num2 ;
var x y;
run;
即可对变量X Y进行单变量分析,并检验均值分别为num1和num2的情况