1 Star 0 Fork 2

kerrydu/statamacroe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
placebosim.sthlp 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
kerrydu 提交于 2021-07-09 19:39 . 0
{smcl}
{* 14July2016}{...}
{hline}
help for {hi:placebosim}
{hline}
{title:placebo simulation}
{cmd:placebosim } perform the placebo simulation for treatment effects by randomly matching the idividuals with the treatment.
{marker syntax}{...}
{title:Syntax}
{p 8 17 2}
{cmd:placebosim}
[{it:{help exp_list}}]
{cmd:,} {opt id(varname)} {opt policy(varlist)} {opt r:eps(#)} [{it:options}]
{cmd::} {it:command}
{synoptset 21}{...}
{synopt:{it:options}}Description{p_end}
{synoptline}
{synopt:{opt id(varname)}}specify the id variables{p_end}
{synopt:{opt policy(varlist)}}speicify the treatment variables{p_end}
{synopt:{opt nodots}}suppress replication dots{p_end}
{synopt :{opt dots(#)}}display dots every {it:#} replications{p_end}
{synopt:{opt noi:sily}}display any output from {it:command}{p_end}
{synopt:{opt tr:ace}}trace {it:command}{p_end}
{synopt:{help prefix_saving_option:{bf:{ul:sa}ving(}{it:filename}{bf:, ...)}}}save
results to {it:filename}{p_end}
{synopt:{opt nol:egend}}suppress table legend{p_end}
{synopt:{opt v:erbose}}display the full table legend{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:. placebosim b=_b[did], reps(1000) id(id) policy(did): 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

搜索帮助