在 Stata 上加载 ado 文件

Loading an ado file on Stata

我有关于将第三方程序加载到 Stata 的问题。

我正在使用 Stata 13.1 版,并尝试使用世界银行编写的第三方 ado 文件中定义的程序(可访问 here)。

我试过将 ado 文件放在我的 C:/ado/plus 文件夹中,这是 Stata 上列出的默认目录。

但是,当我尝试 运行 统治时使用:

dominance y [aw=wt], sortvar(x)

Stata 抛出以下错误:

plugin not loaded or not available: use the adoonly option

我找不到有关如何加载插件的任何信息。

这让我无法使用这个程序和运行我的分析,我做错了什么吗?

adoonly选项对应用户写命令locpolydominance的要求。

统治的作者假设你已经安装了 locpoly 的插件。如果您不想安装它,那么您需要修改 dominance ado 文件,这样它将 运行 和 locpoly, ... adoonly.

选项是为 locpoly 安装插件。介绍该命令的文章是here. Note that locpoly was superseded by lpoly, a Stata official command. Find a Statalist thread with relevant information here。阅读完整的线程,因为它包含与系统架构相关的其他相关信息。

有关 Stata 插件的更多信息,请查看 http://www.stata.com/plugins/