data cox;
input t d group @@;
cards;
8 1 1 180 1 2 232 1 2 452 0 1 58 1 1 540 0 2 220 1 1 63 1 1 195 1 2 76 1 2 70 1 2 52 1 1 13 1 2
490 0 2 676 0 1 18 1 2 300 1 2 496 0 1 560 0 1 210 1 2 63 1 1 528 0 1 396 1 2 365 0 1 23 1 2
;
proc phreg data=cox ;
model t*d(0)=group ;
run;
The SAS System 08:50 Thursday, December 2, 2006
The PHREG Procedure
Model Information
Data Set WORK.COX
Dependent Variable t
Censoring Variable d
Censoring Value(s) 0
Ties Handling BRESLOW
Summary of the Number of Event and Censored Values
Total Event Censored Percent Censored
25 17 8 32.00
Convergence Status
Convergence criterion (GCONV=1E-8) satisfied.
Model Fit Statistics
Criterion Without Covariates With Covariates
-2 LOG L 94.671 93.043
AIC 94.671 95.043
SBC 94.671 95.876
Testing Global Null Hypothesis: BETA=0
Test Chi-Square DF Pr > ChiSq
Likelihood Ratio 1.6279 0.2020
Score 1.6058 0.2051
Wald 1.5544 0.2125
Analysis of Maximum Likelihood Estimates
Variable DF Parameter Standard Hazard Estimate Error Chi-Square Pr > ChiSq hazard Ratio
group 1 0.63654 0.51056 1.5544 0.2125 1.890
请问如何将输出结果中的wald检验值和p-value保存到一个data set中,请高手帮忙,真的很急,感激不尽!(因为要做很多次检验,所以不能每次看到输出结果再做,需要编一个程序,哈哈)
input t d group @@;
cards;
8 1 1 180 1 2 232 1 2 452 0 1 58 1 1 540 0 2 220 1 1 63 1 1 195 1 2 76 1 2 70 1 2 52 1 1 13 1 2
490 0 2 676 0 1 18 1 2 300 1 2 496 0 1 560 0 1 210 1 2 63 1 1 528 0 1 396 1 2 365 0 1 23 1 2
;
proc phreg data=cox ;
model t*d(0)=group ;
run;
The SAS System 08:50 Thursday, December 2, 2006
The PHREG Procedure
Model Information
Data Set WORK.COX
Dependent Variable t
Censoring Variable d
Censoring Value(s) 0
Ties Handling BRESLOW
Summary of the Number of Event and Censored Values
Total Event Censored Percent Censored
25 17 8 32.00
Convergence Status
Convergence criterion (GCONV=1E-8) satisfied.
Model Fit Statistics
Criterion Without Covariates With Covariates
-2 LOG L 94.671 93.043
AIC 94.671 95.043
SBC 94.671 95.876
Testing Global Null Hypothesis: BETA=0
Test Chi-Square DF Pr > ChiSq
Likelihood Ratio 1.6279 0.2020
Score 1.6058 0.2051
Wald 1.5544 0.2125
Analysis of Maximum Likelihood Estimates
Variable DF Parameter Standard Hazard Estimate Error Chi-Square Pr > ChiSq hazard Ratio
group 1 0.63654 0.51056 1.5544 0.2125 1.890
请问如何将输出结果中的wald检验值和p-value保存到一个data set中,请高手帮忙,真的很急,感激不尽!(因为要做很多次检验,所以不能每次看到输出结果再做,需要编一个程序,哈哈)