#title 트리형태의 그래프 [[TableOfContents]] ==== 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) }}} attachment:트리형태의그래프/tree01.png mode의 formual는 2 part로 되어 있다. 하나는 분류하는 부분이고, 다른 하나는 terminal_panel에 설명되어질 부분이다. 각 파트는 '|'기호로 분리한다.위 예제의 formula에서 * lstat + rm + chas 부분이 terminal_panel에 설명되는 부분 * zn + indus + nox + age + dis + rad 부분이 분류하는 부분