Diff for "FAQ/sigdet" - CBU statistics Wiki
location: Diff for "FAQ/sigdet"
Differences between revisions 7 and 8
Revision 7 as of 2006-07-26 11:24:16
Size: 792
Editor: pc0082
Comment:
Revision 8 as of 2006-07-26 15:29:33
Size: 795
Editor: pc0102
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
 * Also available by typing sigdet at a UNIX prompt
 * Excel syntax available at http://psy.ucsd.edu/~kang/sdt/sdt.htm
 *Also available by typing sigdet at a UNIX prompt
 *Excel syntax available [http://psy.ucsd.edu/~kang/sdt/sdt.htm here].

Dprimes and Betas may be computed in SPSS using the probit function.

[CUT AND PASTE SPSS SYNTAX BELOW INTO A SYNTAX WINDOW AMENDING DATA AS REQUIRED]

* Computes Dprimes and Betas for signal detection theory
* amend data input as required
SET FORMAT F10.5.
DATA LIST FREE /
HI FN FP CN.

BEGIN DATA
9 1 3 7
6 4 2 8
END DATA.

IF (HI EQ 0) HI = 0.5.
IF (FN EQ 0) FN =0.5.
IF (FP EQ 0) FP = 0.5.
IF (CN EQ 0) CN =0.5.

COMPUTE HIP = HI / (HI + FN).
COMPUTE FPP = FP / (FP + CN).

COMPUTE DP = PROBIT(HIP) - PROBIT(FPP).
COMPUTE BETA = EXP(-0.5*(PROBIT(HIP)**(2))) / EXP(-0.5*(PROBIT(FPP)**(2))).
LIST VARIABLES= DP BETA HI FN FP CN.

None: FAQ/sigdet (last edited 2015-04-14 15:29:31 by PeterWatson)