Hello, I am using the command margins to compute marginal effects in a linear regression with interactions, and want to plot those across time.
Code:
reghdfe unit_value i.china_hk_dummy##i.year, absorb(hs8_group##state_group##ym) vce(robust) quietly margins 1.china_hk_dummy, dydx(i.year) marginsplot, scheme(sj) xlabel(, angle(90)) ytitle("Marginal effect", size(small)) xtitle("") title("")
Is there a way to easily edit those labels without typing it all out as I did?
Code:
marginsplot, scheme(sj) xlabel(1 "2013" 2 "2014" 3 "2015" 4 "2016" 5 "2017" 6 "2018" 7 "2019" 8 "2020" 9 "2021" 10 "2022" 11 "2023") ytitle("Marginal effect", size(small)) xtitle("") title("")
Comment