作者andersonhaha (好山好水 多健康)
看板Statistics
標題[程式] 請問 SAS 高手: covariates 設定
時間Fri Jun 5 19:45:49 2015
[軟體程式類別]:SAS
[程式問題]: Cox Phreg competing risk [軟體熟悉度]: 中
[問題敘述]:
作 Cox model with competing risk, 先作 covariate
data
aspirn;
input aspirn_c sex age_c; /*aspirin_c 分4層*/
datalines;
/*分層這裡會有問題? sex/age_c只有二層,如何設定? */
0 0 0
/* Row 3 in the Covariates=data set had invalid values */
1 1 1
/* Row 4 in the Covariates=data set had invalid values */
2 . .
3 . .
/* Cox model */
PROC PHREG data=cv plots(overlay=stratum)=cif;
class aspirin_c (order=internal ref=first)
sex (order=internal ref=first)
age_c (order=internal ref=first);
model time*cv(0)=aspirn_c sex age_c /eventcode=1;
baseline covariates=
aspirin out=out1 cif=_all_/rowid=aspirn_c;
run;
請問是 covariates aspirn 設定有錯嗎,sex/age_c 會設定每層aspirn的比例?
--
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.168.201.3
※ 編輯: andersonhaha (1.168.201.3), 06/05/2015 19:58:08
1F:推 imaltar: age_c後有加分號嗎 06/05 21:17
2F:→ andersonhaha: age_c 最後有加,但問題是 covariates 設定? 06/05 22:04
※ 編輯: andersonhaha (111.246.174.125), 06/05/2015 22:06:03
3F:推 JeffMathis: 你的分層3跟4沒有sex 跟age_c???? 06/12 10:56