Hi, I am conducting a CFA in which a latent variable is regressed on 2 dichotomous variables. I keep getting this error message:
*** ERROR One or more variables have a variance of zero. Check your data and format statement.
Continuous Number of Variable Observations Variance
**IPV 41 0.000 CHIADOL 41 0.678
IPV is a dichotomous variable. i've checked the data and it shouldn't have zero variance - group 1 has 42 people and group 2 has 22. there are only a couple missing data points, and no blanks. I'm not sure what is causing the problem.
Here is my syntax:
MODEL: f1 BY zaffang Zharm@.5 ZRisk zconcen@.5; zAFFANG WITH zSOMAT ; f2 BY ineffnob* zdamsham* zguilt zsomat zsystems; zSOMAT WITH ZRISK ; f3 BY zvicoth distrrev@1; distrrev WITH zconcen ; ZDAMSHAM WITH INEFFNOB; INEFFNOB WITH ZSYSTEMS ; INEFFNOB WITH distrrev; ZDAMSHAM WITH INEFFNOB ; f4 BY f1* f2@.33f3@.33;
f4 ON IPV; f4 ON chiadol;
This error only comes up when I run both the regressions listed above. If I just include f4 on ipv, I don't get the error. Any ideas what might be causing this?