R rpart()

Jmnote (토론 | 기여)님의 2020년 5월 6일 (수) 02:24 판 (새 문서: ==개요== ;R rpart() * "Recursive Partitioning And Regression Trees" <source lang='r' run> fit <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis) fit2 <- rpart(Kyphosis ~ Ag...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

R rpart()
  • "Recursive Partitioning And Regression Trees"
fit <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis)
fit2 <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis,
              parms = list(prior = c(.65,.35), split = "information"))
fit3 <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis,
              control = rpart.control(cp = 0.05))
par(mfrow = c(1,2), xpd = NA) # otherwise on some devices the text is clipped
plot(fit)
text(fit, use.n = TRUE)
plot(fit2)
text(fit2, use.n = TRUE)

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}