rndseed 22222;
x = rndn(100,5);
y = rndu(100,1);
output file = ols_output.txt reset;
{vnam,m,b,stb,vc,stderr,sigma,cx,rsq,resid,dwstat } =OLS(0,y,x);
output off;
print;
print "Results of this run stored in ols_output.txt file";
print "The file will be found in your working directory";
运行结果
Valid cases: 100 Dependent variable: Y
Missing cases: 0 Deletion method: None
Total SS: 8.933 Degrees of freedom: 94
R-squared: 0.056 Rbar-squared: 0.006
Residual SS: 8.430 Std error of est: 0.299
F(5,94): 1.121 Probability of F: 0.355
Standard Prob Standardized Cor with
Variable Estimate Error t-value >|t| Estimate Dep Var
-------------------------------------------------------------------------------
CONSTANT 0.547568 0.030380 18.023696 0.000 --- ---
X1 -0.003320 0.026306 -0.126226 0.900 -0.012713 0.003518
X2 0.009618 0.031366 0.306628 0.760 0.031012 0.024476
X3 0.080912 0.037479 2.158841 0.033 0.219586 0.218314
X4 -0.022899 0.029318 -0.781073 0.437 -0.080386 -0.085410
X5 -0.003979 0.033101 -0.120209 0.905 -0.012472 -0.060514
Results of this run stored in ols_output.txt file
The file will be found in your working directory