代码拉取完成,页面将自动刷新
{smcl}
{* 14July2016}{...}
{hline}
help for {hi:placebotest}
{hline}
{title:placebo simulation}
{cmd:placebo} perform the placebo simulation for treatment effects by randomly matching the idividuals with the treatment.
{marker syntax}{...}
{title:Syntax}
{p 8 17 2}
{cmd:placebotest}
[{it:{help exp_list}}]
{cmd:,} {opt cluster(varlist)} {opt tvar(varname)} policy(varlist) [{opt seed(#)} {opt r:eps(#)}]
{cmd::} {it:command}
{synoptset 21}{...}
{synopt:{it:options}}Description{p_end}
{synoptline}
{synopt:{opt cluster(varlist)}}specify randomizing the policy by clusters{p_end}
{synopt:{opt tvar(varname)}}specify the time variable{p_end}
{synopt:{opt policy(varlist)}}speicify the treatment variables{p_end}
{synopt:{opt reps(#)}}set replication number to {it:#} {p_end}
{synopt:{opt seed(#)}}set random-number seed to {it:#}{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
{marker examples}{...}
{title:Examples}
{marker examples}{...}
{title:Examples}
{pstd}
Perform DID regression:
{phang}
{cmd:. use plexample.dta}
{p_end}
{phang}
{cmd:. xi:xtreg number did i.appyear,fe cluster(id)}
{p_end}
{pstd}
Perform the placebo experiment 1000 times:
{phang}
{cmd:. placebotest b=_b[did], reps(1000) cluster(id) policy(did) tvar(appyear): xi:xtreg number did i.appyear,fe}
{p_end}
{hline}
{title:Authors}
{phang}
{cmd:Kerry Du}, School of Management, Xiamen University, China.{break}
E-mail: {browse "mailto:[email protected]":[email protected]}. {break}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。