永发信息网

用stata处理did模型需要哪些数据

答案:1  悬赏:20  手机版
解决时间 2021-01-16 20:32
  • 提问者网友:愿为果
  • 2021-01-16 15:43
用stata处理did模型需要哪些数据
最佳答案
  • 五星知识达人网友:青灯有味
  • 2021-01-16 17:07
这个刚回答过你啊,或者你的同学
给你一个例子:
cd "C:\DATA\Econ 562\homework"
use eitc, clear

gen anykids = (children >= 1)
gen post93 = (year >= 1994)

mean work if post93==0 & anykids==0
mean work if post93==0 & anykids==1
mean work if post93==1 & anykids==0
mean work if post93==1 & anykids==1 Then you must do the calculation by hand (shown on the last line of the R code).
(value 4 – value 3) – (value 2 – value 1)

Run a simple D-I-D Regression
Now we will run a regression to estimate the conditional difference-in-difference estimate of the effect of the Earned Income Tax Credit on “work”, using all women with children as the treatment group. This is exactly the same as what we did manually above, now using ordinary least squares. The regression equation is as follows:

Where is the white noise error term, and is the effect of the treatment on the treated — the shift shown in the diagram. To be clear, the coefficient on is the value we are interested in (i.e., ).
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯