TITLE:

section 8.16 data analysis example 3: confirmatory factor analysis (analysis phase);

DATA:

! listing file containing the imputed data set names;

file = eatimplist.dat;

! imputation data as input;

type = imputation;

VARIABLE:

! eat1-eat21 = eating attitudes test items;

! bmi = body mass index;

! wsb = western standards of beauty;

! anx = anxiety;

names = eat1 eat2 eat10 eat11 eat12 eat14 eat24 eat3 eat18 eat21 bmi wsb anx;

! select variables for analysis;

usevariables = eat1 - eat21;

ANALYSIS:

! mlr produces robust standard errors;

! estimator = ml gives the pooled likelihood ratio (D3) statistic;

estimator = mlr;

MODEL:

! set metric of latent variables;

drive@1 foodpre@1;

! define loading patterns for each latent variable;

drive by eat1-eat24*;

foodpre by eat3-eat21*;

OUTPUT:

! standardized gives standardized estimates (stdyx solution);

standardized(stdyx);