Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to add fixed effects in mediation analysis using gsem command?

    Hi,

    Please help me figure out the following issue.

    I am performing mediation analysis using gsem command on a panel data with levels - team and product id. I used the sem command in stata but it treats the data as cross-sectional and hence does not fit my data. I am trying to use gsem command that allows for the fixed effects but I am not able to figure it out. Additionally, I also need to add year-fixed effects to the data.


    Below is the structure of my unbalanced panel:
    team_id product_id
    1 P1
    1 P2
    1 P3
    1 P4
    1 P5
    2 P6
    2 P7
    2 P8
    2 P9
    Emily Albom
Working...
X