Hi all! First time writing into statalist.
I have been having difficulty using a multigroup structural equation model using Stata 17.0.
I'm have had no problem running the multigroup structural equation model based on the Theory of Planned Behavior (TPB) for sustainable food consumption using the following syntax:
sem (Att -> tpbc_att1_1 tpbc_att2_1 tpbc_att3_1 ) ///
(PBC -> tpbc_pbc1_1 tpbc_pbc2_1 tpbc_pbc3_1 ) ///
(Mobl -> tpbc_mobl1_1 tpbc_mobl2_1 tpbc_mobl3_1 ) ///
(Subn -> tpbc_subn1_1 tpbc_subn2_1 tpbc_subn3_1 ) ///
(Int -> tpbc_int1_1 tpbc_int2_1 tpbc_int3_1 ) ///
(Att PBC Mobl Subn -> Int ), ///
covstruct(_lexogenous, diagonal) group(cs1) ginvariant(mcoef mcons) method(mlmv) latent(Att PBC Mobl Subn Int) cov(Att*PBC Att*Mobl Att*Subn PBC*Mobl PBC*Subn Mobl*Subn) standardized nocapslatent
However, when I try to apply the same model for sustainable garden management, the multigroup SEM, with the exact same syntax, does not converge.
That's when I tried fitting the model with difficult technique(nr bhhh dfp bfgs) using the following syntax:
sem (Att -> tpbg_att1_1 tpbg_att2_1 tpbg_att3_1 ) /// (PBC -> tpbg_pbc1_1 tpbg_pbc2_1 tpbg_pbc3_1 ) ///
(Mobl -> tpbg_mobl1_1 tpbg_mobl2_1 tpbg_mobl3_1 ) ///
(Subn -> tpbg_subn1_1 tpbg_subn2_1 tpbc_subn3_1 ) ///
(Int -> tpbg_int1_1 tpbg_int2_1 tpbg_int3_1 ) ///
(Att PBC Mobl Subn -> Int ), ///
covstruct(_lexogenous, diagonal) group(cs1) ginvariant(mcoef mcons) method(mlmv) latent(Att PBC Mobl Subn Int) cov(Att*PBC Att*Mobl Att*Subn PBC*Mobl PBC*Subn Mobl*Subn) difficult technique (nr bhhh dfp bfgs) standardized nocapslatent
I get the follwing error message:
Fitting target model: (setting technique to nr)
Iteration 0: log likelihood = -51013.424 (not concave)
Iteration 1: log likelihood = -27388.496 (not concave)
Iteration 2: log likelihood = -25269.469 (not concave)
Iteration 3: log likelihood = -25261.388 (not concave)
Iteration 4: log likelihood = -25260.881 (not concave)
(switching technique to bhhh)
Iteration 5: log likelihood = -25260.873
Iteration 6: log likelihood = -25260.873 (backed up)
Iteration 7: log likelihood = -25260.873 (backed up)
Iteration 8: log likelihood = -25260.873 (backed up)
Iteration 9: log likelihood = -25260.873 (backed up)
(switching technique to dfp)
Iteration 10: log likelihood = -25260.873 (backed up)
Iteration 11: log likelihood = -25260.873 (backed up)
Iteration 12: log likelihood = -25260.873 (backed up)
Iteration 13: log likelihood = -25260.873 (backed up)
Iteration 14: log likelihood = -25260.873 (backed up)
(switching technique to bfgs)
Iteration 15: log likelihood = -25260.873 (backed up)
Iteration 16: log likelihood = -25260.873 (backed up)
Iteration 17: log likelihood = -25256.278
_sem_eval_mlmv_v2(): 3301 subscript
invalid opt__calluser1_v(): - function returned error
opt__eval_bfgs_v1(): - function returned error
opt__eval_bfgs_v2(): - function returned error
opt__eval_cycle(): - function returned error
opt__eval(): - function returned error
opt__steputil_backward(): - function returned error
opt__step(): - function returned error
opt__looputil_step(): - function returned error
opt__loop_cycle(): - function returned error
opt__loop(): - function returned error
_optimize(): - function returned error
_sem_fit(): - function returned error
st_sem_fit(): - function returned error
<istmt>: - function returned error
r(3301);
Is anyone aware of the mistake I might be making? Thank you!
My sample size is 307 for group 1 and 541 for group 2, and the dataset has been cleaned to not contain more than 10% of missing values.
I have been having difficulty using a multigroup structural equation model using Stata 17.0.
I'm have had no problem running the multigroup structural equation model based on the Theory of Planned Behavior (TPB) for sustainable food consumption using the following syntax:
sem (Att -> tpbc_att1_1 tpbc_att2_1 tpbc_att3_1 ) ///
(PBC -> tpbc_pbc1_1 tpbc_pbc2_1 tpbc_pbc3_1 ) ///
(Mobl -> tpbc_mobl1_1 tpbc_mobl2_1 tpbc_mobl3_1 ) ///
(Subn -> tpbc_subn1_1 tpbc_subn2_1 tpbc_subn3_1 ) ///
(Int -> tpbc_int1_1 tpbc_int2_1 tpbc_int3_1 ) ///
(Att PBC Mobl Subn -> Int ), ///
covstruct(_lexogenous, diagonal) group(cs1) ginvariant(mcoef mcons) method(mlmv) latent(Att PBC Mobl Subn Int) cov(Att*PBC Att*Mobl Att*Subn PBC*Mobl PBC*Subn Mobl*Subn) standardized nocapslatent
However, when I try to apply the same model for sustainable garden management, the multigroup SEM, with the exact same syntax, does not converge.
That's when I tried fitting the model with difficult technique(nr bhhh dfp bfgs) using the following syntax:
sem (Att -> tpbg_att1_1 tpbg_att2_1 tpbg_att3_1 ) /// (PBC -> tpbg_pbc1_1 tpbg_pbc2_1 tpbg_pbc3_1 ) ///
(Mobl -> tpbg_mobl1_1 tpbg_mobl2_1 tpbg_mobl3_1 ) ///
(Subn -> tpbg_subn1_1 tpbg_subn2_1 tpbc_subn3_1 ) ///
(Int -> tpbg_int1_1 tpbg_int2_1 tpbg_int3_1 ) ///
(Att PBC Mobl Subn -> Int ), ///
covstruct(_lexogenous, diagonal) group(cs1) ginvariant(mcoef mcons) method(mlmv) latent(Att PBC Mobl Subn Int) cov(Att*PBC Att*Mobl Att*Subn PBC*Mobl PBC*Subn Mobl*Subn) difficult technique (nr bhhh dfp bfgs) standardized nocapslatent
I get the follwing error message:
Fitting target model: (setting technique to nr)
Iteration 0: log likelihood = -51013.424 (not concave)
Iteration 1: log likelihood = -27388.496 (not concave)
Iteration 2: log likelihood = -25269.469 (not concave)
Iteration 3: log likelihood = -25261.388 (not concave)
Iteration 4: log likelihood = -25260.881 (not concave)
(switching technique to bhhh)
Iteration 5: log likelihood = -25260.873
Iteration 6: log likelihood = -25260.873 (backed up)
Iteration 7: log likelihood = -25260.873 (backed up)
Iteration 8: log likelihood = -25260.873 (backed up)
Iteration 9: log likelihood = -25260.873 (backed up)
(switching technique to dfp)
Iteration 10: log likelihood = -25260.873 (backed up)
Iteration 11: log likelihood = -25260.873 (backed up)
Iteration 12: log likelihood = -25260.873 (backed up)
Iteration 13: log likelihood = -25260.873 (backed up)
Iteration 14: log likelihood = -25260.873 (backed up)
(switching technique to bfgs)
Iteration 15: log likelihood = -25260.873 (backed up)
Iteration 16: log likelihood = -25260.873 (backed up)
Iteration 17: log likelihood = -25256.278
_sem_eval_mlmv_v2(): 3301 subscript
invalid opt__calluser1_v(): - function returned error
opt__eval_bfgs_v1(): - function returned error
opt__eval_bfgs_v2(): - function returned error
opt__eval_cycle(): - function returned error
opt__eval(): - function returned error
opt__steputil_backward(): - function returned error
opt__step(): - function returned error
opt__looputil_step(): - function returned error
opt__loop_cycle(): - function returned error
opt__loop(): - function returned error
_optimize(): - function returned error
_sem_fit(): - function returned error
st_sem_fit(): - function returned error
<istmt>: - function returned error
r(3301);
Is anyone aware of the mistake I might be making? Thank you!
My sample size is 307 for group 1 and 541 for group 2, and the dataset has been cleaned to not contain more than 10% of missing values.
Comment