diff fte, t(treated) p(t) cov(bk kfc roys) kernel id(id)
diff fte, t(treated) p(t) cov(bk kfc roys) kernel id(id) support
diff fte, t(treated) p(t) report kernel id(id) ktype(gaussian) pscore(_ps)
diff fte, t(treated) p(t) bs kernel id(id) bw(0.006) pscore(_ps)
Stata里的说明:
cov(varlist) Specifies the pre-treatment covariates of the model. When option kernel is selected these variables are used to
generate the propensity score.
kernel Performs the Kernel-based Propensity Score Matching diff-in-diff. This option generates _weights that contains the weights derived from the kernel density function, _ps when the Propensity Score is not specified in
pscore(varname). This option requires the id(varname) of each individual.
diff-in-diff control for convariance是在DD加入其他控制变量,和做差值比较是否对控制组、处理组配对无关;而diff-in-diff with kernel,做差值得时候,是将处理组与通过kernel配对后(kernel matching)的处理作进行做差,与是否加入控制变量无关。因此两者区别,关键是在第二次做差的时候,是否考虑了matching问题