Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Statscraft 0.61.0, release v0.61.0

DESCRIPTIVES

Summary statistics of numeric variables, optionally saved as z-scores.

Syntax

DESCRIPTIVES [/]VARIABLES=varlist [/STATISTICS=stat ...] [/SORT=[key] [(A | D)]]
             [/MISSING=VARIABLE | LISTWISE [INCLUDE]] [/SAVE].

stat: MEAN SEMEAN STDDEV VARIANCE KURTOSIS SKEWNESS RANGE MINIMUM MAXIMUM SUM DEFAULT ALL.

DEFAULT is MEAN STDDEV MINIMUM MAXIMUM; N is always shown. Weighted when a weight variable is set.

SORT lists the variables by key (MEAN SEMEAN STDDEV VARIANCE KURTOSIS SKEWNESS RANGE MIN MAX SUM or NAME), ascending (A, the default) or descending (D); without a key it is the mean. A variable without the statistic goes last. The key need not be among the statistics shown.

MISSING=VARIABLE (the default) leaves out the missing values of each variable on its own; LISTWISE leaves out a case missing on any listed variable; INCLUDE counts user-missing values.

The row Valid N (listwise) counts the cases valid on every listed variable. String variables get no statistics; a warning names them. var (name) in the list adds a z-score under that name; SAVE adds one for every variable, named Z plus the variable name (ZSC001 to ZSC099, STDZ01 to STDZ09, ZZZZ01 to ZZZZ09, ZQZQ01 to ZQZQ09 when that name is taken), labeled Zscore: plus the label.

Example

GET FILE='survey.sav'.
DESCRIPTIVES age spend satisfaction.
DESCRIPTIVES spend /STATISTICS=MEAN SEMEAN STDDEV MIN MAX.
DESCRIPTIVES age spend /SAVE.

The example reads the sample data file survey.sav, an invented customer survey; save it in the folder you run the syntax from.

Example output

Descriptive Statistics

VariableLabelNMeanStd DevMinimumMaximum
ageAge in years30045.7413.701884
spendMonthly spend in euros28438.5113.2113.6394.52
satisfactionOverall satisfaction with the service2773.161.1615
Valid N (listwise)261
Missing N (listwise)39

statscraft help DESCRIPTIVES prints the same text in the terminal. All commands