func9.sas

来自「SAS for Windows统计分析系统教程,里面有源码」· SAS 代码 · 共 27 行

SAS
27
字号
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 + =
减小字号Ctrl + -
显示快捷键?