Dear all,
I need help to get my diff-diff model on track.
- my dependent variable is a continuous variable that measures civil service professionalization
- the treatment is a staggered multiperiod measured as funding allocation by year at the municipality level
- it is a not-yet-treated model, since eventually all municipalities get treated. (most get treated in the first year)
- i want to "weight" the results since the volume of funding is fundamental (like a "dose" in a continuous treatment)
I have reached this initial function:
hdidregress twfe (patronage lmunrev ppoverty) ( firsttreat ) [aweight = stn], group(ibge7) time(Year) controlgroup(notyet) cohortvar(treat, replace) vce(cluster ibge7)
I have a few questions that I hope you can help me with:
1 - since I´m using "not-yet-treated", it is not clear how to define the tvar (in case firsttreat), because all units get eventually treated.
2—Is there a minimum balance between treated and not-yet-treated municipalities in each year period? In the last years, a few municipalities have still not been treated, and in the last year, everyone has been treated.
3—Is the weighting that I´m suggesting correct? Its objective is to weigh municipalities by the volume of resources they received.
Thank you!
Luna Viana
I need help to get my diff-diff model on track.
- my dependent variable is a continuous variable that measures civil service professionalization
- the treatment is a staggered multiperiod measured as funding allocation by year at the municipality level
- it is a not-yet-treated model, since eventually all municipalities get treated. (most get treated in the first year)
- i want to "weight" the results since the volume of funding is fundamental (like a "dose" in a continuous treatment)
I have reached this initial function:
hdidregress twfe (patronage lmunrev ppoverty) ( firsttreat ) [aweight = stn], group(ibge7) time(Year) controlgroup(notyet) cohortvar(treat, replace) vce(cluster ibge7)
I have a few questions that I hope you can help me with:
1 - since I´m using "not-yet-treated", it is not clear how to define the tvar (in case firsttreat), because all units get eventually treated.
2—Is there a minimum balance between treated and not-yet-treated municipalities in each year period? In the last years, a few municipalities have still not been treated, and in the last year, everyone has been treated.
3—Is the weighting that I´m suggesting correct? Its objective is to weigh municipalities by the volume of resources they received.
Thank you!
Luna Viana

Comment