Hey everyone,
I am currently struggling to find the right code for a mediation with panel data.
I am testing this model:
and want to include a mediation factor (name of the mediating variable is: "ccit" and it is a count variable).
I thought about using the -sem- command but unfortunately I have realized this is only suitable for linear relationships.
https://www.statalist.org/forums/for...ion-panel-data
Here, I found this explanation, hint, ... but I am struggling to transfer it to my model.
Does anyone have useful information for this kind of mediation and/or can help me with the code in my case.
Kind regards,
Jana
I am currently struggling to find the right code for a mediation with panel data.
I am testing this model:
Code:
xtreg ln_tq cvcie1 `controls' i.fyear, fe vce(cluster gvkey)
I thought about using the -sem- command but unfortunately I have realized this is only suitable for linear relationships.
https://www.statalist.org/forums/for...ion-panel-data
Here, I found this explanation, hint, ... but I am struggling to transfer it to my model.
Does anyone have useful information for this kind of mediation and/or can help me with the code in my case.
Kind regards,
Jana

Comment