_대문 | 방명록 | 최근글 | 홈피소개 | 주인놈 |
FrontPage › 트리형태의그래프
|
|
[edit]
1 Model-based Recursive Partitioning #참고: http://rgm3.lab.nig.ac.jp/RGM/R_rdfile?f=party/man/plot.mob.Rd&d=R_CC
#install.packages("mlbench") #library("mlbench") #BostonHousing 데이터는 mlbench에 있다. library("party") fm2 <- mob(medv ~ lstat + rm + chas | zn + indus + nox + age + dis + rad, control = mob_control(minsplit = 100), data = BostonHousing, model = linearModel) #model = linearModel #model = glinearModel, family = binomial() plot(fm2) ![]() mode의 formual는 2 part로 되어 있다. 하나는 분류하는 부분이고, 다른 하나는 terminal_panel에 설명되어질 부분이다. 각 파트는 '|'기호로 분리한다.위 예제의 formula에서
|
다정스런 말은 시원한 물보다도 더 시원하게 목마름을 축여준다. |