@_@!!
data dat;
infile '1.txt';
input dat;
run;
data twi;
infile '2.txt';
input twi;
run;
data dec1;
infile '3.txt';
input dec1;
run;
data all;
merge dat twi dec1;
run;
data alll;
d=0;
set all;
if dat<20000320 then d=1;
ded=dec1*d;
run;
proc reg data=alll;
model twi=d dec1 ded;
test d=0 , ded=0;
run;
The SAS System 25
22:36 Saturday, June 10, 2000
Model: MODEL1
Dependent Variable: TWI
Analysis of Variance
Sum of Mean
Source DF Squares Square F Value Prob>F
Model 3 105532441.83 35177480.609 229.832 0.0001
Error 190 29080892.755 153057.33029
C Total 193 134613334.58
Root MSE 391.22542 R-square 0.7840
Dep Mean 8642.04639 Adj R-sq 0.7806
C.V. 4.52700
The SAS System 26
22:36 Saturday, June 10, 2000
Parameter Estimates
Parameter Standard T for H0:
Variable DF Estimate Error Parameter=0 Prob > |T|
INTERCEP 1 6376.959192 619.95942317 10.286 0.0001
D 1 -1187.360075 636.05124762 -1.867 0.0635
DEC1 1 33.364806 7.60648084 4.386 0.0001
DED 1 39.478467 8.21399581 4.806 0.0001
The SAS System 27
22:36 Saturday, June 10, 2000
Dependent Variable: TWI
Test: Numerator:18840746.310 DF: 2 F value: 123.0960
Denominator: 153057.3 DF: 190 Prob>F: 0.0001
The SAS System 28
22:36 Saturday, June 10, 2000
Model: MODEL1
Dependent Variable: TWI
Analysis of Variance
Sum of Mean
Source DF Squares Square F Value Prob>F
Model 3 105710460.37 35236820.122 231.638 0.0001
Error 190 28902874.216 152120.39061
C Total 193 134613334.58
Root MSE 390.02614 R-square 0.7853
Dep Mean 8642.04639 Adj R-sq 0.7819
C.V. 4.51312
The SAS System 29
22:36 Saturday, June 10, 2000
Parameter Estimates
Parameter Standard T for H0:
Variable DF Estimate Error Parameter=0 Prob > |T|
INTERCEP 1 5209.013627 141.06111984 36.927 0.0001
D 1 654.104131 696.76362899 0.939 0.3490
DEC1 1 72.314669 3.06787085 23.572 0.0001
DED 1 -32.777635 8.88686120 -3.688 0.0003
The SAS System 30
22:36 Saturday, June 10, 2000
Dependent Variable: TWI
Test: Numerator:18929755.579 DF: 2 F value: 124.4393
Denominator: 152120.4 DF: 190 Prob>F: 0.0001
--
感覺自己失去許多時
問自己擁有多少
感覺自己擁有許多時
問自己付出多少
--
※ 發信站: 批踢踢實業坊(ptt.twbbs.org)
◆ From: ccsun31.cc.ntu.edu.tw