Python ile Survival Analysis
Shae Wang
Senior Data Scientist
lifelines için medyan)model.baseline_hazard_.plot()
plt.show()

model.baseline_survival_.plot()
plt.show()

| Hesaplama | Örnek | |
|---|---|---|
| Katsayı | $x$ | $0.405$ |
| Hazard oranı | $e^x$ | $e^{0.405}=1.5$ |
| Tehlike yorumu | $e^x-1$ | $1.5-1 = 0.5$ -> tehlikede %50 artış |
| Sağkalım süresi yorumu | $\frac{1}{e^x}-1$ | $\frac{1}{1.5}-1 = 0.67-1 = -0.23$ -> sağkalımda %23 azalma |
.plot_partial_effects_on_outcome()
covariates (string veya liste): değiştirmek istediğimiz özgün veri setindeki ortak değişken ad(lar)ı.values (1d veya 2d iterable): ortak değişkenin almasını istediğimiz değerler.Modelin ortak değişkenleri A, B, C; {{1}} değerlerini değiştirmek istiyoruz
A: 1, 2B: 3, 4model.plot_partial_effects_on_outcome(
covariates=["A","B"],
values=[[1,2],
[3,4]]
)
plt.show()

Hatalı...
Modelin ortak değişkenleri A, B, C; şu değerleri değiştirmek istiyoruz:
A: 1, 2B: 3, 4model.plot_partial_effects_on_outcome(
covariates=["A","B"],
values=[[1,3],
[1,4],
[2,3],
[2,4]]
)
plt.show()

Doğru!
Python ile Survival Analysis