Skip to content
Prev 307963 / 398503 Next

party for prediction [REPOST]

On Sun, 14 Oct 2012, Ed wrote:

            
No prob. Just for the record, in case anybody else wonders: MOB is based 
on score-type tests (or Lagrange multiplier type tests) to decide which 
variable should be used for partitioning in the next step. In principle, 
likelihood-ratio-type tests could also be used but require fitting models 
under all conceivable splitted models. Especially for all two-way splits 
in numerical partitioning variables, this can be very costly and hence the 
computationally cheaper score tests are used (which only require model 
fitting once per node). In your case with only categorical partitioning 
variable, computing the likelihood ratio test is possible and only a 
little bit more coputationally expensive. (And you indicated that you do 
not worry about that.)

To build your own new tree function, it may be useful to employ the 
"partykit" infrastructure. This has very useful base infrastructure for 
representing the tree part but has not yet be customized for conveniently 
accessing model fits in the leaves. It's on our to-do list though...

Best,
Z