Hi,
I was hoping someone could point me to a manual or video tutorial for plotting the average marginal effect of an IV over time for a mixed effects regression of time-series-cross-sectional. Specifically, I have measures for ~3000 groups for each week over a 26-week period. If I include an IV for weeks in the fixed effects portion of the model, is it possible to plot the AME over that 26-week period? Something like:
Making things a little more complicated is that I am actually interested in the effect of an interaction between two independent variables over time, so I tried this:
But, the results don't look quite right. Any advice would be appreciated. I am using Stata 16.
Thank you!
I was hoping someone could point me to a manual or video tutorial for plotting the average marginal effect of an IV over time for a mixed effects regression of time-series-cross-sectional. Specifically, I have measures for ~3000 groups for each week over a 26-week period. If I include an IV for weeks in the fixed effects portion of the model, is it possible to plot the AME over that 26-week period? Something like:
Code:
margins, dydx(independent_variable ) over(time_variable)
Code:
margins, dydx(independent_variable) at(moderating_variable=(0 .5 1)) over(time_variable)
Thank you!