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

NONPAR CORR

Spearman’s rho and Kendall’s tau-b rank correlations with significance.

Syntax

NONPAR CORR [/VARIABLES=]varlist [WITH varlist] [/varlist ...]
            [/PRINT=SPEARMAN | KENDALL | BOTH  TWOTAIL | ONETAIL  SIG | NOSIG
                    FULL | LOWER | LNODIAG] [/MISSING=PAIRWISE | LISTWISE [INCLUDE]] [/SAMPLE]
            [/MATRIX=OUT(* | 'file' | dataset)] [/CI [METHOD(FHP | CC | BW)] [CILEVEL(95)]].

CI adds the lower and upper limit of Spearman’s rho (not of tau-b, which gets a warning): Fisher’s transformation with the standard error sqrt(1.06 / (W - 3)) (FHP, the default), or sqrt(1 / (W - 2) + |z| / (6 W + 4 sqrt(W))) (CC) or sqrt((1 + rho^2 / 2) / (W - 3)) (BW), z the transformed rho and W the sum of the weights of the pair; ONETAIL gives a bound as in CORRELATIONS.

MATRIX writes the last list without WITH: the records N (as in CORRELATIONS) and RHO, or TAUB when only KENDALL is asked (BOTH writes rho alone), with VARNAME_ and one set per SPLIT FILE group.

A list alone gives a square matrix, WITH a rectangular one (left variables in rows). Ties get their average rank; rho is tested with t on N - 2 df, tau-b with the normal approximation and the tie-corrected variance. NOSIG marks coefficients significant at 0.05 with * and at 0.01 with **. PAIRWISE (default) uses the cases valid on both variables of a pair; LISTWISE the cases valid on every variable of the list, each list on its own. A weight variable repeats each case as often as its weight rounded to a whole number. SAMPLE changes nothing.

Example

NONPAR CORR /VARIABLES=satisfaction recommend WITH age /PRINT=BOTH NOSIG.

statscraft help NONPAR CORR prints the same text in the terminal. All commands