! See DeCarlo (2003). Source monitoring and multivariate signal
! detection theory, with a model for selection. Journal of Mathematical
! Psychology, 47, 292-303.
TITLE: Yonelinas, 1999, Experiment 2, WLS;
DATA:  FILE IS C:\mplus\files\yone992.txt;
       TYPE IS Individual;
! Note: the data must be in the form of individual records
VARIABLE: NAMES ARE item y1 y2;
          CATEGORICAL ARE y1 y2;
          GROUPING IS item (1=new 2=female 3=male);
! The above line shows how the items are coded
ANALYSIS: TYPE = MEANSTRUCTURE; ESTIMATOR = wls;
! The full bivariate model is fit using WLS
! The Mplus manual shows how to impose restrictions
MODEL: f1 BY y1@1; f2 BY y2@1;
               f1@0; f2@0;
               f1 with f2@0;
               y1 with y2*0;
MODEL female: f1 BY y1@1; f2 BY y2@1;
              f1@0; f2@0;
              f1 with f2@0;
              [f1 f2];
              y1 with y2*0;
MODEL male:   f1 BY y1@1; f2 BY y2@1;
              f1@0; f2@0;
              f1 with f2@0;
              [f1 f2];
              y1 with y2*0;
OUTPUT: tech1 tech3;