双重差分 (Difference-in-Differences,DID) 方法是实证经济学和其他学科政策评估的主力军。其关键假设是控制组和处理组之间的趋势是平行的,即平行 (或共同) 趋势假设 (Parallel Trend Assumption,PTA)。在两组表现出潜在的不平行或随机趋势时,经典的 DID 方法的估计结果往往并不可靠。本推文将要介绍的主成分双重差分...
*自动确定因子数量的 PCDID 模型 pcdid y treated treated_post x1 x2 *生成上述 pcdid 命令预测的 yhat pdd yhat *生成包含反事实结果的 yhat0 replace treated_post=0 pdd yhat0 *例 1:使用 3 个因子代理执行 pcdid 估计并执行平行趋势 alpha 检验 pcdid y treated treated_post x1 x2, alpha fp(3...
题目【题目】Reat an mile the scntoms,主成分)1. did go where last you Monday(?)__ ___2. space we're to a see film going about travel(.)3. dinner for would what you like (2)___ __1. books this in you do often read park(?) 相关知识点: 试题来源...
pcdid y treated treated_post treated_post2 x1 x2 *例 3:假设 id=1 是一个处理组,以下命令使用 NW 滞后 3 阶对该处理组进行 pcdid 基本估计 pcdid y treated treated_post x1 x2, tr(id==1) nwlag(3) *例 4:为所有控制组和处理组生成预测结果和残差 pcdid y treated treated_post x1 x2, ...