yeahcyj14 发表于 2009-4-2 21:33 
如题。用OLS回归,R的平方等于1. 这是不是说明拟合度的最高境界啊??R的平方可以等于1么?总觉得不现实呀,是不是我模型有问题啊?急,谢谢各位!
Every observed data points are on regression line/plane. Or there is no randomness. See example below.
************************************************
data t1;
do i = 1 to 10;
x=rannor(123);
y=1+1*x;
output;
end;
run;
proc reg data=t1;
model y=x;
run;
quit;
The SAS System 20:01 Thursday, May 20, 2010 13
The REG Procedure
Model: MODEL1
Dependent Variable: y
Number of Observations Read 10
Number of Observations Used 10
Analysis of Variance
Sum of Mean
Source DF Squares Square F Value Pr > F
Model 1 6.11578 6.11578 Infty <.0001
Error 8 0 0
Corrected Total 9 6.11578
Root MSE 0 R-Square 1.0000
Dependent Mean 1.22354 Adj R-Sq 1.0000
Coeff Var 0
Parameter Estimates
Parameter Standard
Variable DF Estimate Error t Value Pr > |t|
Intercept 1 1.00000 0 Infty <.0001
x 1 1.00000 0 Infty <.0001