Hi all,
I am running Stata 12 and curious what is the most efficient method of estimating a triple diff-in-diff model with Cameron, Gelbach and Miller standard errors? I am currently using -cgmreg-combined with -xi- to estimate my model, but this requires 2 hours for each permutation of my regression because I am explicitly estimating a few thousand dummy variables. I'm not aware of a way to use -areg- or -xtreg- because I require two-way clustered standard errors.
For example, imagine a dependent variable (y) and the treatment variable (x) that both vary by three dimensions: country, group and year. I would estimate this model using the following:
The only estimate I care about retrieving is the treatment variable x. I would appreciate thoughts about a better way to estimate this model if possible. Thank you.
I am running Stata 12 and curious what is the most efficient method of estimating a triple diff-in-diff model with Cameron, Gelbach and Miller standard errors? I am currently using -cgmreg-combined with -xi- to estimate my model, but this requires 2 hours for each permutation of my regression because I am explicitly estimating a few thousand dummy variables. I'm not aware of a way to use -areg- or -xtreg- because I require two-way clustered standard errors.
For example, imagine a dependent variable (y) and the treatment variable (x) that both vary by three dimensions: country, group and year. I would estimate this model using the following:
Code:
xi: cgmreg y x country##group country##year group##year, cluster(group country)
Comment