risk

How to plot survival curve of competing risk analysis with censoring mark and number at risk (at risk table)

Rを用いて生存分析を行う際に, Kaplan-Meier curve に打ち切りのマークを入れたり,number at risk (at risk table)を併記する方法はすぐに見つかるが(Drawing survival curves in R, ggkm, Survival plots have never been so informative),competing riskのplotの場合はあまり情報がない.prodlimを使えば簡単なので,まとめておく. なお, competing risk については以下を参照. Competing risk analysis using R: an easy guide for clinicians Regression modeling of competing risk using R: an in depth guide for clinicians Competing risk analysisのデモ A not so short review on survival analysis in R Table of Contents Prepare dataset “Melanoma” from “riskRegression” package Competing risk analysis with cuminc of “cmprsk” package Competing risk analysis with prodlim Days Years Plot survival curve of competing risk analysis with prodlim (default) Plot survival curve of competing risk analysis with prodlim (modified) Prepare dataset “Melanoma” from “riskRegression” package library(riskRegression) data(Melanoma) head(Melanoma) summary(Melanoma) time status event invasion ici epicel ulcer 1 10 2 death.