全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2115 2
2017-01-19
这是我目前版本

set type double
set memory 50m
set matsize 2000
set scrollbufsize 500000  
set more off, perma

adopath + "/Applications/Stata/ado/personal"
*采用相似的方式,可添加其它允许stata搜索的目录
*adopath + "路径1"
*adopath + "路径2"


sysdir set PLUS " /Applications/Stata/ado/plus"        
sysdir set OLDPLACE " /Applications/Stata/ado/myado"   
sysdir set PERSONAL " /Applications/Stata/ado/personal"


* log文件:自动以当前日期为名存放于 Stata/do 文件夹下

cap cd `c(sysdir_stata)'do
if _rc{
   mkdir `c(sysdir_stata)'do
}
local fn = subinstr("`c(current_time)'",":","",2)
local fn1 = subinstr("`c(current_date)'"," ","",3)
log using `c(sysdir_stata)'do\s`fn1'`fn'.log, text replace
cmdlog using `c(sysdir_stata)'do\c`fn1'`fn'.log, replace


*cd /Applications/Stata/ado/personal  
cd `c(sysdir_personal)'


*! gegerate submenu of Meta-analysis
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&reg)" "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 append item "Meta-Analysis" "Meta_lr" "db meta_lr"
  window menu refresh
}
上面是整个profile.do的代码。我使用的是Mac stata14SE版。自己是新手,不知道怎么修改才不会出现红字,请大家帮帮忙,谢谢!

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2017-1-20 10:29:30
出的是什么字啊?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-1-20 10:41:00
https://bbs.pinggu.org/thread-1527154-1-1.html
估计是一样的问题不是profile的问题

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群