STAT

The  STAT command will print means, standard deviations, variances, minimums, and maximums for the variables listed.

In general, the format is:

  STAT vars / options


The available options are:

Option Description
ALL The basic statistics are computed for ALL the variables in the data.
ANOVA Prints an ANalysis Of VAriance table and an F value that tests the null hypothesis of equal means. For equal sample sizes a two-way analysis of variance is constructed. When two variables are specified,additional test statistics for equal means and variances are reported.
BARTLETT Perform Bartlett's Homogeneity of Variance Test.
DN Uses N rather than N-1 in computing variances.
MATRIX Uses any matrices contained in the list vars as single variables.
MAX Prints PCOR, PCOV, PCP, PCPDEV and PRANKCOR matrices.
PCOR Prints a CORrelation matrix of the variables listed.
PCOV Prints a COVariance matrix of the variables listed.
PCP Prints a CrossProduct matrix of the variables listed.
PCPDEV Prints a CrossProduct matrix of variables in DEViations from the means.
PFREQ Prints tables of FREQuencies.
PMEDIAN Prints the MEDIAN, mode and quartiles for each variable.
PRANKCOR PRints a matrix of Spearman's RANK CORrelation coefficients.
REPLICATE Used with WEIGHT= when weights are replication factors.
SAMEOBS Restrict the sample to non-missing observations for all variables.
SAMPSIZE Calculates the sample size for 95% confidence intervals with a set width.
WIDE Prints the Coefficient of Variation and the Constant-Digits statistic.
BEG= END= Specify the beginning and end observations to be used in the given STAT command.
COR= Saves the Correlation Matrix.
COV= Saves the Covariance Matrix.
CP= Saves the CrossProduct Matrix.
CPDEV= Saves the CrossProduct Matrix in deviations from the mean.
MAXIM= Saves the MAXIMums as a vector.
MEAN= Saves the MEANS as a vector.
MEDIAN= Saves the MEDIANS as a vector.
MINIM= Saves the MINIMums as a vector.
MODE= Saves the MODES as a vector.
NPOP= Specifies the population size to use with SAMPSIZE.
RANKCOR= Saves the RANK CORrelation Matrix.
STDEV= Saves the Standard Deviations as a vector.
STEMPLOT= Makes stem-and-leaf plots.
SUMS= Stores the sum of each variable as a vector.
VAR= Saves the VARiances as a vector.
WEIGHT= Specifies a variable to be used as WEIGHTs if weighted descriptive statistics are desired.