Dear all :
It seems we can not just click button to get Hausman test and Sargan test in EViews' window , so I have some ideas
about that by 2SLS method .
model : yi = xi*(beta) + ui , i = 1,....,n
Hausman test:
Ho : xj is exogeneous , Ha : not Ho , j = 1 , ... , k , where k<n
step 1 : run y on x (all x) --> save ui(hat) &
run xj on all z --> save vj(hat) , where z is instrument variables and vi is from : xj = z*r + vj
step 2 : run ui(hat) on x (all x) and vj --> save R^2
step 3 : compute LM=n*R^2 ~ X^2(k) [Chi-squared distribution with degree of freedom k]
Sargan test :
Ho: z is exogeneous , Ha: not Ho
step 1 : run y on x (all x) by instrument variable method --> save residuals ui( IV hat )
step 2: run ui( IV hat ) on z --> save R^2
step3 : compute LM =n*R^2 ~X^2(m-k) [Chi-squared distribution with degree of freedom m-k]
where m is the number of instrument variables
Hope this will help !
[此贴子已经被作者于2009-5-30 23:52:18编辑过]