安慰剂检验介绍、操作及举例

安慰剂检验介绍(Placebo test
安慰剂是一种附加实证检验的思路,并不存在一个具体的特定的操作方法一般存在两种寻安慰剂变量的方法。
比如,在已有的实证检验中,发现自变量Xi会影响自变量Zi与因变量Yi之间存在相关关系。在其后的实证检验中,采用其他主体(国家,省份,公司)的Xj变量作为安慰剂变量,检验Xj是否影响Zi与Yi之间的相关关系。如果不存在类似于Xi的影响,即可排除Xi的安慰剂效应,使得结果更为稳健。
另一种寻安慰剂变量的方法。已知,Xi是虚拟变量,Xi=1,if t>T;Xi=0 if t<T;Xi对Zi对Yi的影响的影响在T时前后有显著差异(DID)。在其后的实证检验中,将Xi`设定为Xi`=1,if t>T+n;Xi`=0 if t<T+n,其中n根据实际情况取值,可正可负。检验Xi`是否影响Zi与Yi之间的相关关系。如果不存在类似于Xi的影响,即可排除Xi的安慰剂效应,使得结果更为稳健。
举例:
以美国市场某种政策冲击识别策略的因果关系考察,在最后部分选取英国同期的因变量,检验是否有类似的特征,就是安慰剂检验。
以中国2007年所得税改革作为减税的政策冲击以验证减税对企业创新的影响。亦可以通过把虚拟的政策实施时间往前往后推几年,作为虚拟的政策时点,如果检验发现没有类似的因果,文章的主要结论就更加可信了
    以下是详细的例题,安慰剂检验在最后。
微计算机信息Surviving Graduate Econometrics with R: Difference-in-Differences Estimation — 2 of 8
The following replication exercise closely follows the homework assignment #2 in ECNS 562. The data for this exercise can be found here.
The data is about the expansion of the Earned Income Tax Credit. This is a legislation aimed at providing a tax break for low income individuals.  For some background on the subject, see
Eissa, Nada, and Jeffrey B. Liebman. 1996. Labor Supply Responses to the Earned Income Tax Credit. Quarterly Journal of Economics. 111(2): 605-637.
The homework questions (abbreviated):
1.Describe and summarize data.
2.Calculate the sample means of all variables for (a) single women with no children, (b) single women with 1 child, and (c) single women with 2+ children.
3.Create a new variable with earnings conditional on working (missing for non-employed) and calculate the means of this by group as well.
4.Construct a variable for the “treatment” called ANYKIDS and a variable for after the expansion (called POST93—should be 1 for 1994 and later).
5.Create a graph which plots mean annual employment rates by year (1991-1996) for single women with children (treatment) and without children (control).
6.ppvaCalculate the unconditional difference-in-difference estimates of the effect of the 1993 EITC expansion on employment of single women.
7.Now run a regression to estimate the conditional difference-in-difference estimate of the effect of the EITC. Use all women with children as the treatment group.
8.Reestimate this model including demographic characteristics.
9.Add the state unemployment rate and allow its effect to vary by the presence of children.
10.Allow the treatment effect to vary by those with 1 or 2+ children.
11. Estimate a “placebo” treatment model. Take data from only the pre-reform period. Use the same treatment and control groups. Introduce a placebo policy that begins in 1992 (so 1992 and 1993 both have this fake policy).
A review: Loading your data
Recall the code for importing your data:
STATA:
/*Last modified 1/11/2011 */
*************************************************************************
*The following block of commands go at the start of nearly all do files*/
*Bracket comments with /* */ or just use an asterisk at line beginning
clear                                  /*Clears memory*/
我的军校生活set mem 50m                            /*Adjust this for your particular dataset*/
cd "C:\DATA\Econ 562\homework"        /*Change this for your file structure*/
log using stata_assign2.log, replace  /*Log file records all commands & results*/
display "$S_DATE $S_TIME"
set more off
insheet using eitc.dta, clear
*************************************************************************
R:
1
2
信托公司集合资金信托计划管理办法3
4
5
6
7
8
9
10
11
12
13
14
15
# Kevin Goulding
# ECNS 562 - Assignment 2
 
>>>>>>>>>>>>>>####
# Load the foreign package
require(foreign)
 
# Import data from web site
# update: first download the file eitc.dta from this link:
# le/open?id=0B0iAUHM7ljQ1cUZvRWxjUmpfVXM
# Then import from your hard drive:
eitc = read.dta("C:/link/to/my/download/folder/eitc.dta")</pre>
Note that any comments can be embedded into R code, simply by putting a <code> # </code> to the left of your comments (e.g. anything to the right of <code> # </code> will be ignored by R). Alternately, you can download the data file, and import it from your hard drive:
 
eitc = read.dta("C:\DATA\Courses\Econ 562\homework\eitc.dta")
调查:中小学生劳动教育脱离日常
Describe and summarize your data
Recall from part 1 of this series, the following code to describe and summarize your data:
STATA:
des
sum
R:
In R, each column of your data is assigned a class which will determine how your data is treated in various functions. To see what class R has interpreted for all your variables, run the following code:
1
2
3
4
sapply(eitc,class)
summary(eitc)
source('sumstats.r')
sumstats(eitc)
midd
To output the summary statistics table to LaTeX, use the following code:
1
2
require(xtable)                  # xtable package helps create LaTeX code from R.
xtable(sumstats(eitc))
Note: You will need to re-run the code for sumstats() which you can find in an earlier post.
Calculate Conditional Sample Means
STATA:
summarize if children==0
summarize if children == 1
summarize if children >=1
summarize if children >=1 & year == 1994

本文发布于:2024-09-20 22:22:21,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/671861.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:检验   政策   变量   影响   实证   减税
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议