|
http://www.stata.com/statalist/archive/2009-01/msg00910.html
这里边介绍的非常清楚,亲测可用
Is there a way in Stata to determine whether or not the change in R-squared is statistically significant? In other words, if I enter the second block of variables into my model, and there is an increase in R-squared, how can I determine if that change (from block 1 to block 2) is statistically significant? Thank you!
You can use either the -nestreg- or test commands. e.g. if block1 has x1, x2, and x3, and block2 has x4, x5 and x6, either of the following would work:
reg y x1 x2 x3 x4 x5 x6
test x4 x5 x6
or else
nestreg: reg y (x1 x2 x3) (x4 x5 x6)
|