1 Star 0 Fork 2

kerrydu/statamacroe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
placebotest.sthlp 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
sigma 提交于 2022-03-04 21:01 . revise
{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}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
其他
1
https://gitee.com/kerrydu/statamacroe.git
[email protected]:kerrydu/statamacroe.git
kerrydu
statamacroe
statamacroe
master

搜索帮助