library(fixest)
est_did = feols(y ~ x1 + i(period, treat, 5) | id+period,
data = base_did)
iplot(est_did, only.params = TRUE) # The "base" version
iplot_data(est_did) # The wrapper provided by this package
# Illustrative fixest_multi case, where the sample has been split by odd and
# even ID numbers.
est_split = feols(y ~ x1 + i(period, treat, 5) | id+period,
data = base_did, split = ~id%%2)
iplot(est_split, only.params = TRUE) # The "base" version
iplot_data(est_split) # The wrapper provided by this package
Run the code above in your browser using DataLab