1 Star 0 Fork 2

kerrydu/statamacroe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
permute2.sthlp 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
kerrydu 提交于 2022-03-17 11:39 . permute2
{smcl}
{* 14July2016}{...}
{hline}
help for {hi:permute2}
{hline}
{title:placebo simulation}
{cmd:permute2} perform the placebo simulation for treatment effects by randomly matching the panels with the treatment.
{marker syntax}{...}
{title:Syntax}
{p 8 17 2}
{cmd:permute2}
[{it:{help exp_list}}]
{cmd:,} {opt cluster(varlist)} {opt tvar(varname)} {opt tr:eatment(varlist)} {opt r:eps(#)} [{it:options}]
{cmd::} {it:command}
{synoptset 21}{...}
{synopt:{it:options}}Description{p_end}
{synoptline}
{synopt:{opt cluster(varlist)}}specify the cluster variables for random sampling{p_end}
{synopt:{opt treatmant(varlist)}}speicify the treatment variables{p_end}
{synopt:{opt tvar(varname)}}speicify the time variable.{p_end}
{synopt:{opt reps(#)}}speicify # of replications{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:. permute2 b=_b[did], reps(1000) cluster(id) tvar(appyear) treatment(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

搜索帮助