你看看 D:\stata10\ 目录下是否有 profile.do 文件。
如果有的话,采用如下命令打开之:
doedit D:\stata10\profile.do
然后,你需要查验 PLUS 等文件夹的位置是否进行了正确的设定:
我的 profile.do 文件内容设定如下,
set type double
set memory 50m
set matsize 2000
set more off,perma
set scrollbufsize 300000
adopath + "D:\stata10\ado\personal"
local fn = subinstr("`c(current_time)'",":","",2)
local fn1 = subinstr("`c(current_date)'"," ","",3)
log using d:\stata10\do\s`fn1'`fn'.log, text replace
cmdlog using d:\stata10\do\c`fn1'`fn'.log, replace
sysdir set PLUS "D:\stata10\ado\plus"
sysdir set OLDPLACE "C:\ado"
sysdir set PERSONAL "D:\stata10\ado\personal"
cd d:\stata10\ado\personal
蓝色部分请重点修改。
你对比修改成我这样,保存,然后重新启动 stata 即可。
如果一切设定正确无误,屏幕上应该显示:
___ ____ ____ ____ ____ tm
/__ / ____/ / ____/
___/ / /___/ / /___/ 10.0 Copyright 1984-2007
Statistics/Data Analysis StataCorp
4905 Lakeway Drive
Special Edition College Station, Texas 77845 USA
800-STATA-PC
http://www.stata.com
979-696-4600
stata@stata.com
979-696-4601 (fax)
Single-user Stata for Windows perpetual license:
Serial number: 12345678901
Licensed to: Unidata Users
Unidata Studio
Notes:
1. (/m# option or -set memory-) 10.00 MB allocated to data
2. (/v# option or -set maxvar-) 5000 maximum variables
running D:\stata10\profile.do ...