search for: ngroupsintree

Displaying 1 result from an estimated 1 matches for "ngroupsintree".

2008 Jun 17
0
Rpart description of tree groups
....4166667) * 15) ACPS=Yes 14 5 Present (0.3571429 0.6428571) * R> varsInTree <- as.vector ( + tree $ frame $ var [ tree $ frame $ var %nin% "<leaf>"] # %nin% from Hmisc + ) R> varsInTree [1] "P3XMAR2" "PADV" "ACPS" R> nGroupsInTree <- sum ( tree $ frame $ var == "<leaf>" ) R> nGroupsInTree [1] 4 R> What i havent been successful at so far is generating an enumerated list of the groups formed. I wanted to do something similar to the print.rpart but instead of enumerating nested lists I wanted a des...