I am confused about gynth in R and fect in Stata command which are produced by Xu et al., (2017) and Liu et al. (2020), respectively.
1) Do gsynth in R and fect in Stata implement the same thing? I do use R but I am more comfortable with Stata. In Stata:
fect Y, treat(D) unit(id) time(time) cov(X1 X2) method("fe")
fect Y, treat(D) unit(id) time(time) cov(X1 X2) method("ife") r(2) se
fect Y, treat(D) unit(id) time(time) cov(X1 X2) method("mc") lambda(0.002 0.003 0.004 0.005)
Are these methods called generalized synthetic control methods? or only ife and mc are called GSC?
I looked at the equivalence of gsynth (of R) in Stata which is also gsynth (develped by Nick Huntington-Klein) and from the commands of gsynth in stata are:
import delimited "https://vincentarelbundock.github.io/Rdatasets/csv/causaldata/gapminder.csv", clear
. g treat = continent == "Asia" & year >= 2001
* Using interactive fixed effects, and getting standard errors
. gsynth lifeexp treat pop gdppercap, index(country year) se
. * Or matrix completion with cross-validation to select terms
. gsynth lifeexp treat pop gdppercap, index(country year) se estimator("mc")
From the above commands of MC, and IFE, it looks like Nick is applying gsynth with interactive fixed effect and matrix completion which is what Liu et al. (2020) have done in their command of fect with ife and fect with mc. So my second question is:
2) Are gsynth command by Nick (Using Mc and IFE) the same as Liu et al. (2020)’s fect...method (ife) and fect.. method (mc) in Stata?
References
Xu, Y. (2017). Generalized synthetic control method: Causal inference with interactive fixed effects models. Political Analysis, 25(1), 57-76.
Licheng Liu, et al. 2020. "A Practical Guide to Counterfactual Estimators for Causal Inference with Time-Series Cross-Sectional Data."
Nick's gsynth package: https://github.com/NickCH-K/MLRtime
1) Do gsynth in R and fect in Stata implement the same thing? I do use R but I am more comfortable with Stata. In Stata:
fect Y, treat(D) unit(id) time(time) cov(X1 X2) method("fe")
fect Y, treat(D) unit(id) time(time) cov(X1 X2) method("ife") r(2) se
fect Y, treat(D) unit(id) time(time) cov(X1 X2) method("mc") lambda(0.002 0.003 0.004 0.005)
Are these methods called generalized synthetic control methods? or only ife and mc are called GSC?
I looked at the equivalence of gsynth (of R) in Stata which is also gsynth (develped by Nick Huntington-Klein) and from the commands of gsynth in stata are:
import delimited "https://vincentarelbundock.github.io/Rdatasets/csv/causaldata/gapminder.csv", clear
. g treat = continent == "Asia" & year >= 2001
* Using interactive fixed effects, and getting standard errors
. gsynth lifeexp treat pop gdppercap, index(country year) se
. * Or matrix completion with cross-validation to select terms
. gsynth lifeexp treat pop gdppercap, index(country year) se estimator("mc")
From the above commands of MC, and IFE, it looks like Nick is applying gsynth with interactive fixed effect and matrix completion which is what Liu et al. (2020) have done in their command of fect with ife and fect with mc. So my second question is:
2) Are gsynth command by Nick (Using Mc and IFE) the same as Liu et al. (2020)’s fect...method (ife) and fect.. method (mc) in Stata?
References
Xu, Y. (2017). Generalized synthetic control method: Causal inference with interactive fixed effects models. Political Analysis, 25(1), 57-76.
Licheng Liu, et al. 2020. "A Practical Guide to Counterfactual Estimators for Causal Inference with Time-Series Cross-Sectional Data."
Nick's gsynth package: https://github.com/NickCH-K/MLRtime
Comment