Online File

How to use this page


Rick Aster: Professional SAS Programming Secrets: Contents

Chapter 12
Program 12b
Statistic functions


*
  Professional SAS Programming Secrets
  Program 12b
  Statistic functions
*;
data _null_;
   x1 = 4;
   x2 = .;
   x3 = 0;
   x4 = 5;
   x5 = 6;
   x6 = 5;

   css = css(of x1-x6);
   cv = cv(of x1-x6);
   kurtosis = kurtosis(of x1-x6);
   largest2 = largest(2, of x1-x6);
   mad = mad(of x1-x6);
   max = max(of x1-x6);
   mean = mean(of x1-x6);
   median = median(of x1-x6);
   min = min(of x1-x6);
   n = n(of x1-x6);
   nmiss = nmiss(of x1-x6);
   q1 = pctl1(25, of x1-x6);
   q3 = pctl1(75, of x1-x6);
   range = range(of x1-x6);
   skewness = skewness(of x1-x6);
   smallest2 = smallest(2, of x1-x6);
   std = std(of x1-x6);
   stderr = stderr(of x1-x6);
   sum = sum(of x1-x6);
   uss = uss(of x1-x6);
   var = var(of x1-x6);
   put (_all_) (=);
run;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Secrets

Contents/Online Files

Corrections