Greetings,
I'm running Stata 15.1 on a Mac OS and am working with cross-sectional survey data. I'm trying to run a CFA of two factors (RR, DISC) with one higher-order factor (GF):
However, after entering the syntax above, I am unable to get the model to converge (it endlessly iterates). I'm not sure what the issue is, so I would really appreciate some input on how to correct it.
Here is some sample data:
Thanks in advance for your help!
I'm running Stata 15.1 on a Mac OS and am working with cross-sectional survey data. I'm trying to run a CFA of two factors (RR, DISC) with one higher-order factor (GF):
Code:
sem (RR-> revrr_favors revrr_tryharder rr_slavery rr_deserve) (DISC-> racineq_discrim disc_blacks nodisc_equalincomes) (GF->RR DISC) if white==1, stand method(adf)
Here is some sample data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(revrr_favors revrr_tryharder) long(rr_slavery rr_deserve) byte racineq_discrim long(disc_blacks nodisc_equalincomes) byte white 5 5 5 5 0 5 2 1 4 3 4 3 50 3 3 0 4 4 4 4 75 5 6 1 1 3 1 1 9 1 4 1 4 5 5 3 50 5 4 1 2 3 4 2 15 3 4 1 2 4 5 3 70 4 4 1 5 5 5 5 100 5 6 1 3 3 4 4 75 3 4 1 1 1 2 2 48 4 2 1 5 5 5 5 80 5 6 1 1 1 1 1 10 2 1 1 5 5 5 5 85 5 6 1 5 5 5 5 100 5 7 1 4 4 5 4 76 5 5 1 5 4 2 3 55 4 3 1 1 1 1 1 0 1 1 1 4 4 4 5 55 5 5 1 1 2 1 1 0 1 1 1 3 3 3 3 51 4 4 1 4 5 4 5 50 4 4 1 5 5 5 5 90 5 4 0 1 3 2 2 20 3 5 1 1 1 1 1 0 2 1 1 4 5 5 5 56 4 5 1 2 4 5 4 70 4 6 1 5 5 5 5 100 5 7 1 5 5 1 5 100 5 4 1 3 4 2 3 30 4 5 1 2 4 3 1 18 2 4 1 4 2 4 4 95 3 7 1 3 4 2 3 8 3 2 0 5 5 5 5 90 5 6 0 5 5 5 5 100 4 7 1 2 2 3 2 63 2 2 1 3 3 3 2 65 3 6 1 5 5 1 4 80 5 7 1 4 4 4 4 80 4 5 1 5 5 5 5 90 4 7 1 1 1 1 1 25 1 4 1 1 1 1 1 25 1 1 1 4 5 5 5 89 4 7 1 5 5 4 5 100 5 6 1 2 3 4 5 57 5 7 1 3 3 1 1 0 3 2 1 4 4 4 4 79 4 5 1 5 4 4 5 71 4 3 1 2 5 2 2 5 2 2 1 5 5 5 5 100 4 7 1 1 1 1 1 2 2 1 1 3 4 3 3 21 3 3 1 5 5 5 5 60 5 5 1 4 4 3 3 60 3 3 1 4 5 4 5 80 4 4 1 4 4 5 4 71 3 5 1 2 3 4 3 50 3 5 1 2 2 3 3 50 3 5 1 3 4 5 2 0 1 4 1 3 4 4 3 50 3 4 1 1 2 4 2 40 3 3 1 4 4 4 4 64 3 3 1 1 1 1 1 10 2 2 1 2 4 5 5 80 5 7 1 2 5 4 3 51 4 3 1 5 5 5 5 90 5 7 1 2 3 4 1 5 3 3 1 5 5 5 5 87 5 6 1 4 5 1 5 93 5 5 1 2 4 4 3 50 3 4 1 5 5 5 5 90 5 7 1 5 5 5 5 85 5 6 1 1 1 1 1 54 3 6 1 1 1 1 1 8 3 2 1 3 4 4 4 50 4 4 1 4 4 4 3 51 3 1 1 2 2 4 2 25 3 4 0 4 5 5 5 90 4 7 1 3 4 4 4 86 4 4 1 5 4 5 5 82 5 5 1 2 3 3 3 20 3 3 1 3 4 4 4 51 4 7 1 5 4 5 5 80 4 4 1 1 3 1 2 10 2 4 1 3 5 5 5 100 5 7 1 4 3 4 4 60 4 6 1 4 4 5 4 60 3 5 1 5 5 5 3 100 5 7 1 4 4 4 3 60 4 4 1 5 5 5 3 95 5 5 1 2 2 4 5 50 5 5 1 5 5 5 5 100 5 6 1 3 5 4 5 80 5 2 0 5 5 5 5 81 5 5 1 5 5 5 5 100 5 6 1 1 1 1 1 10 2 3 1 3 3 4 3 61 3 5 1 5 5 5 5 95 3 6 1 2 5 4 4 70 4 5 0 2 3 3 3 31 4 5 1 5 5 5 5 100 5 6 1 end label values revrr_favors revrr_favors label def revrr_favors 1 "Strongly agree", modify label def revrr_favors 2 "Somewhat agree", modify label def revrr_favors 3 "Neither agree nor disagree", modify label def revrr_favors 4 "Somewhat disagree", modify label def revrr_favors 5 "Strongly disagree", modify label values revrr_tryharder revrr_tryharder label def revrr_tryharder 1 "Strongly agree", modify label def revrr_tryharder 2 "Somewhat agree", modify label def revrr_tryharder 3 "Neither agree nor disagree", modify label def revrr_tryharder 4 "Somewhat disagree", modify label def revrr_tryharder 5 "Strongly disagree", modify label values rr_slavery rr_slavery label def rr_slavery 1 "Strongly disagree", modify label def rr_slavery 2 "Somewhat disagree", modify label def rr_slavery 3 "Neither agree nor disagree", modify label def rr_slavery 4 "Somewhat agree", modify label def rr_slavery 5 "Strongly agree", modify label values rr_deserve rr_deserve label def rr_deserve 1 "Strongly disagree", modify label def rr_deserve 2 "Somewhat disagree", modify label def rr_deserve 3 "Neither agree nor disagree", modify label def rr_deserve 4 "Somewhat agree", modify label def rr_deserve 5 "Strongly agree", modify label values disc_blacks disc_blacks label def disc_blacks 1 "None at all", modify label def disc_blacks 2 "Only a little", modify label def disc_blacks 3 "Some", modify label def disc_blacks 4 "A lot", modify label def disc_blacks 5 "A great deal", modify label values nodisc_equalincomes nodisc_equalincomes label def nodisc_equalincomes 1 "Strongly disagree", modify label def nodisc_equalincomes 2 "Disagree", modify label def nodisc_equalincomes 3 "Somewhat disagree", modify label def nodisc_equalincomes 4 "Neither agree nor disagree", modify label def nodisc_equalincomes 5 "Somewhat agree", modify label def nodisc_equalincomes 6 "Agree", modify label def nodisc_equalincomes 7 "Strongly agree", modify
Comment