使用方程对方程的OLS估计,再对施加跨方程约束并进行检验是不可行的,但是通过SUR估计则是可行的。
为了检验年龄解释变量的联合显著性。我们输入:
*Test of variable in both equations
quietly sureg (ldrugexp age age2 actlim totchr medicaid private) (ltotochr age age2 educyr actlim totchr private)
test age age2
(1) [ldrugexp]age=0
(2) [ltotothr]age=0
(3) [ldrugexp]age2=0
(4) [ltotothr]age2=0
chi2(4)=16.55
Prob>chi2=0.0041
这个命令自动地执行了对两个方程的检验。
用于定义系数估计量的格式是[depname]varname,其中depname是我们感兴趣的方程中被解释变量的名称,而varname是我们感兴趣的解释变量的名称。
因此,近对第一个方程中解释变量的显著性检验为:
*Test of variables in just the first equation
test [ldrugexp]age=0 [ldrugexp]age2=0
(1) [ldrugexp]age=0
(2) [ldrugexp]age2=0
chi2(2)=10.98
Prob>chi2=0.0041
在5%的水平上,第一个方程中年龄的二次项是联合显著的。
现在研究对跨方程约束的检验。假设我们想要检验的原假设是,拥有私人保险对两个被解释变量具有相同的影响。
*Test of a restriction across the two equations
test [ldrugexp]private=[ltotochr]private
(1)[ldrugexp]private-[ltotothr]private=0
chi2(1)=8.35
Prob>chi2=0.0038
在5%的显著性水平上,我们拒绝原假设。两个方程中的系数有差异。。