LoginSignup
1
2

More than 5 years have passed since last update.

離散生存決定木 分析

Posted at

離散生存決定木(Discrete-Time Survival Trees)を使うかもしれないのでおさらい。
RのパッケージだとDStree packagesを使う事になる。

簡単なサンプルコード

library(DStree)
# モデル構築
fit<- DStree(spell~ui+age+tenure+logwage,status="censor1",data=UnempDur,control=list(cp=0.0075))
# 決定木を描画
plot(fit)
summary(fit)

面白いと思ったのは決定木の各ノードに中央値年齢みたいなものが入っているためわかりやすいなと思った。

生存決定木.PNG

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2