Hello!
I am looking to identify the direct and indirect effects of three variables (left-right economic values scale; liberal-authoritarian values scale; and having a degree) on vote choice (a categorial variables with several parties).
What I want to test is whether education (thus the degree variable) mediates the effect of left-right and liberal-authoritarian values on vote choice.
I have run a GSEM model because from what I've gathered that's what I need if my outcome is categorical, and to do so I have used the following code:
I have then tried to use the ldecomp command to identify direct and indirect effects through this code:
but I get the following error message:
what am I doing wrong, or what should I do instead...???
Best wishes,
Laura
I am looking to identify the direct and indirect effects of three variables (left-right economic values scale; liberal-authoritarian values scale; and having a degree) on vote choice (a categorial variables with several parties).
What I want to test is whether education (thus the degree variable) mediates the effect of left-right and liberal-authoritarian values on vote choice.
I have run a GSEM model because from what I've gathered that's what I need if my outcome is categorical, and to do so I have used the following code:
Code:
gsem (lr1 -> degree2, family(bernoulli) link(logit)) (lr1 -> vote, family(multinomial) link(logit)) (libauth -> degree2, family(bernoulli) link(logit)) (libauth -> vote, family(multinomial) link(logit)) (degree2 -> vote, family(multinomial) link(logit))
Code:
ldecomp vote, direct(libauth) indirect(degree2) or
Code:
an error occurred when bootstrap executed _ldecomp
Best wishes,
Laura
Comment