Dear all,
I would like to do a mediation analysis with panel data. This is the first time I conduct a mediation analysis. So I'm sorry for this basic question. My independent variable is binary, my mediator is a count variable and the dependent variable is continuous. I read that there are two possibilities in this case to run a mediation analysis:
1) Run two separate regressions (first: IV -> M, second: M ->DV). For the first regression I would use the -xtbnreg- command as my moderator is a count variable. For the second regression I would use -xtreg-. For both regressions I would use the -fe- option (result of Hausman-test). There is a mediating effect if both regressions are significant.
2) Instead of two separate regressions, there is the possibility to run a mediation analysis via SEM. I read that the command -gsem- is suitable for panel data. However, I am using the Stata 12 version which does not include this command.
Do you have any recommendations for me on how to conduct a mediation with panel data using Stata 12 in my case?
Related Posts with Mediation with panel data (Stata version 12)
very slow to plot under linux (ubuntu 16.04 and 19.10) but fine under manjaro (arch-based)For those who have tried to run Stata in Linux, probably already encountered some issues related to …
Same coefficients in Ologit and Gologit2 modelsHello, I am new to ordered logit regression and tried my data with both ologit (failed brant) and g…
using putdocx with contrastUsing Stat 15. I enjoy the -putdocx- command but would like to use it to simplify making documents …
Calculating proportions of several categoriesHello dear all, I am facing a serious problem to use the command proportion. I have a series of neig…
Executing multiple do files with data in another directoryHi, I'm looking to redesign my STATA do file processing to be more scalable. I have one main.do file…
Subscribe to:
Post Comments (Atom)
0 Response to Mediation with panel data (Stata version 12)
Post a Comment