📄 func9.sas
字号:
options nodate nonumber;
title 'Sample statistics functions';
data func9;
input x1-x5;
mean1=mean(of x1-x5); /* mean, average */
max1=max(of x1-x5,.); /* maximum */
min1=min(of x1-x5); /* minimum */
n1=n(of x1-x5); /* cases */
nmiss1=nmiss(of x1-x5,.,.); /* cases of missing values */
sum1=sum(of x1-x5); /* sum */
var1=var(of x1-x5); /* variance */
var2=var(of x1-x5,.); /* variance */
std1=std(of x1-x5); /* standard deviation */
std2=std(of x1-x5,.); /* standard deciation */
stderr1=stderr(of x1-x5); /* standard error */
cv1=cv(of x1-x5); /* coefficient of variance */
range1=range(of x1-x5); /* range */
css1=css(of x1-x5); /* corrected sum of square */
uss1=uss(of x1-x5); /* sum of square */
skewness=skewness(of x1-x5);
kurtosis=kurtosis(of x1-x5);
cards;
1 2 3 4 5
;
proc print;
run;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -