楼主: rui2003fang
16699 12

[Stata高级班] stata安装 新命令的使用 [推广有奖]

11
arlionn 在职认证  发表于 2010-4-15 15:26:50
你看看 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 ...

12
nancyguan 发表于 2010-4-16 13:39:48
老师,刚打开出现了这个,还是不行~~
running D:\stata10\profile.do ...
file d:\stata10\do\s16Apr2010133850.log could not be opened

13
arlionn 在职认证  发表于 2010-4-16 20:43:13
请在 d:\stata10 目录下建立一个空白的文件夹 do
即 d:\stata10\do
然后重新启动stata即可。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-2-15 01:23