I want to run a path analysis using the GSEM command in Stata. I have data that is mainly composed of categorical variables and some dichotomous. I would like to find the indirect paths between different covariates and explanatory variables to the outcome variable sexual satisfaction (dichotomous variable). To do that, I first ran a multivariate logistic regression analysis between various independents variables and my outcome (sexual satisfaction). Then, I ran several other logistic regression analyses with the significant explanatory variables from the previous analysis as the outcome variables and the remaining explanatory variables as independent variables. In the next step, I would like to try to fit the results from these regression analyses in a path model and see whether the direct and indirect paths are significant and whether the model fit is good.
I have a few questions about my strategy:
I have a few questions about my strategy:
- I know I can use GSEM with a dichotomous outcome but can I use the GSEM command also for categorical independent variables?
- I have a hard time determining which variables are endogenous and which ones are exogenous variables. Another problem is that I don’t know whether to include my independent categorical variables as one variable or as several (i.e. 1.var 2.var etc.)
- Below I have two models that I have tried using the SEM Builder. In the first example, I tried the results from my regression analyses using the errors to indicate correlations and covariance. In the second example, I did the same thing only here I indicated my categorical variables by 1.var 2.var etc. and I treated the directly correlated variables to sexual satisfaction also as outcome variables.
- Which one, if any, of these models is correct?
Comment