如何在Stata中安装meta命令菜单?

首先打开Stata, 在命令窗口中输入:ssc install metadialog.pkg

然后将一下内容复制一个新的profile.do文件:

version 7

if _caller() >= 8 {

window menu clear

window menu append submenu "stUser" "&Meta-Analysis"

window menu append item "Meta-Analysis" "Of Binary and Continuous (meta&n)" "db metan"

window menu append item "Meta-Analysis" "Of Effects (&meta)" "db meta"

window menu append item "Meta-Analysis" "Of p-values (meta&p)" "db metap"

window menu append item "Meta-Analysis" "Cumulative (meta&cum)" "db metacum"

window menu append item "Meta-Analysis" "Regression (meta?)" "db metareg"

window menu append item "Meta-Analysis" "Funnel Graph, metan-based (f&unnel)" "db funnel"

window menu append item "Meta-Analysis" "Funnel Graph, &vertical (metafunnel)" "db metafunnel"

window menu append item "Meta-Analysis" "L'abbe Graph, metan-based (&labbe)" "db labbe"

window menu append item "Meta-Analysis" "NNT, metan-based (metann&t)" "db metannt"

window menu append item "Meta-Analysis" "Influence Analysis, metan-based (metan&inf)" "db metaninf"

window menu append item "Meta-Analysis" "Influence Analysis, meta-based (metain&f)" "db metainf"

window menu append item "Meta-Analysis" "Galbraith Plot for Heterogeneity (&galbr)" "db galbr"

window menu append item "Meta-Analysis" "Publication Bias (meta&bias)" "db metabias"

window menu append item "Meta-Analysis" "Trim and Fill Analysis (met&atrim)" "db metatrim"

window menu refresh}

如何建立profile.do?如下图:

然后文件命名为profile.do,放到C盘的ado文件夹中。

最后重新打开Stata就可以找到菜单了。

分享结束

(0)

相关推荐