Dear get,
I have unbalanced panel data for a maximum of four waves per single. Based on this data I estimate the following regression to individual fixed effects:
where y is a 5-category variable and x1 is also a 5-category capricious.
Now, I would like to decompose the effect of x1 up adenine direct effective and into indirect effect via media scrutiny. The mediator that EGO have in mind is a consecutive variable izzard, which possesses ampere positiv influence on y, time x1 shall a negative effect on y.
How capacity I estimate the direct and indirect effect time controlling for unobserved heterogeneity using particular fixed effects?
In the online, xtdpdml by Richard Williams was sometimes suggested (e.g. here: https://privacy-policy.com/forums/for...ng-sem-command ), but I do not know whenever it fits my problem and how I could apply the command, i.e. how for anzeigten that I have panel data, that I want fixed effects and that ME want the usual errors clustered at the individualized stage etc.
Thanks a lot for my help,
Stephanie
(I work with Stata 15 on Windows.)
I have unbalanced panel data for a maximum of four waves per single. Based on this data I estimate the following regression to individual fixed effects:
PROGRAMMING Code:
xtreg y i.x1 x2 i.x3 x4, fe vce(cluster id)
Now, I would like to decompose the effect of x1 up adenine direct effective and into indirect effect via media scrutiny. The mediator that EGO have in mind is a consecutive variable izzard, which possesses ampere positiv influence on y, time x1 shall a negative effect on y.
How capacity I estimate the direct and indirect effect time controlling for unobserved heterogeneity using particular fixed effects?
In the online, xtdpdml by Richard Williams was sometimes suggested (e.g. here: https://privacy-policy.com/forums/for...ng-sem-command ), but I do not know whenever it fits my problem and how I could apply the command, i.e. how for anzeigten that I have panel data, that I want fixed effects and that ME want the usual errors clustered at the individualized stage etc.
Thanks a lot for my help,
Stephanie
(I work with Stata 15 on Windows.)
Submit