连老师您好!为一个非学习问题打扰您真的很抱歉,我遇到了帖子:stata安装 新命令的使用
http://www.pinggu.org/bbs/thread-639782-1-1.html和连老师在视频上讲的为何不能做
http://www.pinggu.org/bbs/thread-604551-1-1.html同一样的问题, 我严格用了您说的:
配套资料的使用方法:
为了方便起见,请将Stata安装于d盘根目录下(注意:是d:\stata10,而不是d:\stata10\stata10),并执行如下操作:
1.请将”plus”文件夹存放于 d:\stata10\ado 目录下,该文件夹中包含了300多条Stata外部命令。
2.请将”examples”文件夹存放于 d:\stata10\ado 目录下,该文件夹包含了几十个Stata官方提供的范例数据文件,以便大家练习使用。
3.请将”net_course”文件夹存放于 d:\stata10\ado\personal 目录下,该文件夹中包含了视屏教程中涉及的所有文本讲义和范例数据。
4.请将”profile.do”文件存放于 d:\stata10 目录下,该文件定义了Stata启动时所需的一些基本设定,学员可打开此文件,根据自己的需要做适当的修改。
上述四条去做的,但是依然出现问题不可认出的命令问题。
我用命令sysdir,下面是stata显示:
sysdir
STATA: D:\stata10\
UPDATES: D:\stata10\ado\updates\
BASE: D:\stata10\ado\base\
SITE: D:\stata10\ado\site\
PLUS: D:\stata10\ado\plus\
PERSONAL: D:\stata10\ado\personal\
OLDPLACE: D:\ado\
但是我无法调用您课程中的范例数据及相关命令,我以您讲义的第一章最小二乘为例
use B1_consume, clear
regress consume income
/*常数项是stata自动加入的*/
reg consume income if income>300
reg consume income in 5/11
regress consume income
predict y, xb
predict e, residual
list
这是您讲义上的 我用它在stata10上面 下面是结果
use B1_consume, clear
file B1_consume.dta not found
r(601);
.
. regress consume income /*常数项是stata自动加入的*/
no variables defined
r(111);
.
. reg consume income if income>300
income not found
r(111);
.
. reg consume income in 5/11
Obs. nos. out of range
r(198);
.
. regress consume income
no variables defined
r(111);
.
. predict y, xb
last estimates not found
r(301);
.
. predict e, residual
last estimates not found
r(301);
.
. list
一直是这样
我现在用动态面板xtabond2,使用您讲义程序(P165页)
use abdata, clear
xtabond2 n L(1/2).n L(0/1).w L(0/2).(k ys) yr1980-yr1984,
///
gmm(L.n) iv(L(0/1).w l(0/2).(k ys) yr1980-yr1984)
///
nomata noleveleq small
出现: use abdata, clear
file abdata.dta not found
r(601);
.
. xtabond2 n L(1/2).n L(0/1).w L(0/2).(k ys) yr1980-yr1984, ///
variable n not found
r(111);
.
. gmm(L.n) iv(L(0/1).w l(0/2).(k ys) yr1980-yr1984) ///
unrecognized command: gmm
r(199);
.
. nomata noleveleq small
unrecognized command: nomata
r(199);
我自己用我自己的数据做系统广义矩也出现这个问题,附件中是我随便找的一些数据想做动态面板用xtabond2命令做实验,我想问您:
我怎么样 能顺利调用您给予我们的外部命令 ,怎么调用您讲义中的范例数据,,上诉情况我怎么解决,非常感谢您的帮助,祝连老师一切顺利!