! DeCarlo, L. T. (2002). Signal detection theory with finite
! mixture distributions: Theoretical developments with
! applications to recognition memory. Psychological Review,
! 109, 710-721.
! Compare the results to those obtained with LEM.
TITLE:    Swets data - mixture model;
DATA:     FILE IS c:\Mplus\files\swets.txt;
! Note: the data must be in individual records form.
VARIABLE: NAMES ARE x y;
          CLASSES = c(2);
          CATEGORICAL = y;
ANALYSIS: TYPE = MIXTURE; ESTIMATOR=ML;
MODEL:    %OVERALL%
           y on x;
           [y$1*-1](1); [y$2*0](2); [y$3*1](3);
           [y$4*2](4);  [y$5*3](5);
! The numbers in parentheses restrict the criteria to
! be equal across the latent classes.
           %c#2%
           y on x@0;
OUTPUT:    SAMPSTAT;