Hello everyone,
I am running a gsem model using the SEM builder and I keep getting this error: parentheses do not balance. I´ve redone the model several times, adding the paths carefully and keep getting the same message. However, if I run the model from my written code it works perfectly.
This is a simplified example of what I´m doing. When I run the code, it converges quickly. When I build the same paths with the SEM builder, at some points it doesn´t work and the error appears.
gsem (age i.marital_st i.parity i.education preg_BMI i.GWG i.breastfeeding-> i.postpartum_w_change, family(multinomial) link(logit)) ///
(age i.marital_st i.parity i.education preg_BMI i.GWG i.breastfeeding-> bmi_72, family(gaussian) link (identity)) ///
(age i.marital_st i.parity i.education preg_BMI i.GWG i.breastfeeding bmi_72->ln_ldl_72, family(gaussian) link (identity)) ///
(postpartum_w_change-> bmi_72 ln_ldl_72, family(gaussian) link (identity)), nocapslatent
I´m assuming that if the model runs with the written code, it is properly specified. However, I´m not sure if I should worry for not being able to run it using the SEM builder. Is there any reason to prefer using the SEM builder vs writing the code?
Thanks
Diana
Related Posts with Gsem -problems with SEM builder tool
finding keywords in string variablesDear Statalister I'm working on a dataset and I need to create a dummy variable equals 1 if the str…
recovering the estimate of an interaction term using margins when the base level of all zeros is not includedHi Fellow Statalisters, In a recent posting (https://www.statalist.org/forums/forum/general-stata-d…
Bootstrapped CI for effect size for one sample t-testHello, I need to test if across a series of studies, the mean response is significantly different f…
Using svy with graphDear all, I am trying to use graph in Stata 16 to plot bars of the means of categorical variables (…
One line code for performing arithmetic operation (here multiplication) while merging two datasetsSuppose, I have two datasets given below, now how can I merge the datasets so that resulting values …
Subscribe to:
Post Comments (Atom)
0 Response to Gsem -problems with SEM builder tool
Post a Comment