概要:生存時間解析
構文
PROC LIFETEST < options>; BY variables; FREQ variable < / option>; ID variables; STRATA variable <(list)> <...variable<(list)>> </ options>; TEST variable; TIME variable <* censor(list)> </ option>; WEIGHT variable; RUN;
ステートメントの説明
ステートメント | 必須 | 解説 |
BY | グループ変数を指定(事前ソートが必要)。 | |
FREQ | オブザベーションの発生頻度を含む変数。 | |
ID | Kaplan-Meier、Breslow、Fleming-Harrington生存関数推定の観測値にラベルを付けるために使用される値を持つ変数。 | |
STRATA | 階層レベルを決定する変数。 | |
TEST | failure timeとの関連をテストする数値共変量(予後変数)のリスト。 | |
TIME | ○ | イベントまたは打ち切りを表す変数。 DAY*CENSOR(2)とあったときは、 CENSOR=2が打ち切り、 それ以外(CENSOR=1など)がイベント(死亡)。 |
WEIGHT | 被験者の重みを含む変数。 負、ゼロ、欠損の場合は計算されない。 |
例
proc lifetest data = sashelp.bmt; time T * STATUS(0); strata GROUP; run;
以下、出力結果です。
![](https://ymddttm.com/wp-content/uploads/2020/05/2020-05-05_01-1-434x1024.png)
![](https://ymddttm.com/wp-content/uploads/2020/05/2020-05-05_02-1-1024x336.png)
![](https://ymddttm.com/wp-content/uploads/2020/05/2020-05-05_03-1-373x1024.png)
![](https://ymddttm.com/wp-content/uploads/2020/05/2020-05-05_04-1-1024x331.png)
![](https://ymddttm.com/wp-content/uploads/2020/05/2020-05-05_05-1-325x1024.png)
![](https://ymddttm.com/wp-content/uploads/2020/05/2020-05-05_06-1-1024x557.png)
![](https://ymddttm.com/wp-content/uploads/2020/05/2020-05-05_07-701x1024.png)
![](https://ymddttm.com/wp-content/uploads/2020/05/2020-05-05_08-1024x769.png)
コメント