以下为blog主人的回复:
不知道你的STATA中是否设定了profile.do 文件,如果没有,可以设一个。它的作用是把一些基本的设定定义好,在每次运行STATA时自动执行。
设定方法:把下面的代码粘贴到 do 文件编辑器中,保存到 D:\stata9 中,名称为 profile.do。当然,你也可以根据自己的需要添加或删除命令。
adopath + "D:\stata9\ado\personal"adopath + "D:\stata9\ado\personal\invt"adopath + "D:\stata9\ado\personal\update2"//adopath + "D:\statawd\chung"//adopath + "D:\statawd\mine"local fn = subinstr("`c(current_time)'",":","",2)log using d:\stata9\ado\do\s`fn'.log, text replacecmdlog using d:\stata9\ado\do\c`fn'.log, replacesysdir set PLUS "D:\stata9\ado\plus"sysdir set OLDPLACE "D:\ado"sysdir set PERSONAL "D:\stata9\ado\personal"set matsize 2000set more off,permacd d:\stata9\ado\personal