Hi all, I am examining the triple diff (diff-in-diff-in-diff)(DDD) in a staggered setting.

Normally, when it comes to DDD, I understood that we examine the differential movement between two sub groups based on a standard (or generalized) DiD.
For example, in a generalized DiD, we can examine the impact of anti-corruption laws on salary of labors. Where anticorruption laws are staggered implemented around the world.

Afterwards, from my understanding, if we want to examine the difference between the impact of this law on salary of male worker and female worker, we need to perform DDD.
At that time, the general equation change from

Code:
Y = a*i + b*t + c*D + epsilon
where D equal to 1 for all observation after the year a country passed the law

to

Code:
 Y = a*i + b*t + c*D*g + epsilon
where g is the group for all-male workers

So g got the value of 1 for male worker and 0 for female worker or "." for female worker?



And I am wondering whether it is a right thinking ?