Statistical Functions

BIN function

divides numeric values into a set of disjoint intervals

BRANKS function

computes bivariate ranks

CORR function

computes correlation statistics

CORR2COV function

scales a correlation matrix into a covariance matrix

COUNTMISS function

counts the number of missing values

COUNTN function

counts the number of nonmissing values

COUNTUNIQUE function

returns the number of unique values

COV function

computes the sample variance-covariance matrix

COV2CORR function

scales a covariance matrix into a correlation matrix

CUSUM function

computes cumulative sums

CUPROD function

computes cumulative products

CV function

computes the sample coefficient of variation

DESIGN function

creates a design matrix

DESIGNF function

creates a full-rank design matrix

DISTANCE function

computes pairwise distances betweens rows of a matrix

GEOMEAN function

computes geometric means

HADAMARD function

creates a Hadamard matrix

HARMEAN function

computes harmonic means

IPF call

performs an iterative proportional fit of a contingency table

KURTOSIS function

computes the sample kurtosis

LAV call

performs linear least absolute value regression by solving the $L_1$ norm minimization problem

LMS call

performs robust least median of squares (LMS) regression

LTS call

performs robust least trimmed squares (LTS) regression

MAD function

finds the univariate (scaled) median absolute deviation

Mahalanobis function

computes Mahalanobis distance

MARG call

evaluates marginal totals in a multiway contingency table

MAXQFORM call

computes the subsets of a matrix system that maximize the quadratic form

MCD call

finds the minimum covariance determinant estimator

MEAN function

computes sample means

MVE call

finds the minimum volume ellipsoid estimator

OPSCAL function

rescales qualitative data to be a least squared fit to qualitative data

QNTL call

computes sample quantiles (percentiles)

RANGE function

returns the range of values for a set of matrices.

RANK function

ranks elements of a matrix, breaking ties arbitrarily

RANKTIE function

ranks elements of a matrix

SEQ call

performs discrete sequential tests

SEQSCALE call

performs estimates of scales associated with discrete sequential tests

SEQSHIFT call

performs estimates of means associated with discrete sequential tests

SKEWNESS function

computes the sample skewness

STD function

computes the sample standard deviation

TABULATE call

counts the number of unique values in a vector

SWEEP function

sweeps a matrix

VAR function

computes the sample variance

You can also call functions in Base SAS software such as those documented in the section Descriptive Statistics Functions and Subroutines.