I am running a model that includes a threeway interactions of age3 year and stedcbin. Age3 and stedcbin are binary. Year ranges from 2015 to 2021. The outcome is continuous, log-transformed and standardized. The dataset had over 500.000 observations. I want to test whether the increase in the effect of age3 over the included years is steeper for one category of stedcbin compared to another eg if the slope on the marginsplot is steeper. See my code and plot below. How do I test this?
Thank you for your advice!
CODE

Thank you for your advice!
CODE
Code:
regress ln_kostggz2_std sex age3##i.year##stedcbin [aweight=AANTAL_VER],cl(code3) margins, dydx(age3) at(year=(2015/2021) stedcbin=(0/1)) marginsplot,recast(line) title (Association between mental health care cost and age group - by year and urbanicity) ytitle(Regression coefficient) xtitle(year)
Comment