I'm using individual cross-sectional survey data to estimate the impact of a continuous variable ("intervention") on a binary employment outcome variable ("employed"). I'm comparing between two years ("year", 2020 and 2021) and two sets of months ("half", where Jan-Jun=1 and Jul-Dec=2).
I'd like to calculate the marginal effect and CIs of just the double DiD term for values of intervention between 1 and 100: 2021.year#2.half.#c.intervention
The below code I tried is close but not right. It generates the marginal effect at all levels of year and half for each intervention value. I want the double difference between year = 2021 and year = 2020 as well as half = 2 and half = 1.
I'd like to calculate the marginal effect and CIs of just the double DiD term for values of intervention between 1 and 100: 2021.year#2.half.#c.intervention
The below code I tried is close but not right. It generates the marginal effect at all levels of year and half for each intervention value. I want the double difference between year = 2021 and year = 2020 as well as half = 2 and half = 1.
Code:
logit employed i.year##i.half##c.intervention margins year#half, at(intervention=(1(1)100))
Comment