search for: listrul

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

Did you mean: istrue
2008 Oct 27
0
Displaying number of Y/N affected by tree in rule form RE: R question/request on rules from rpart
...the function returns the rules along with Y and N count affected by the resulting rule. I am ccing the r-help post in case anyone wants to reuse this updated version as well. This is a great little function. Thanks for developing it and suggesting how to make the enhancement. Regards, Dhruv listrules<-function(model) { if (!inherits(model, "rpart")) stop("Not a legitimate rpart tree") # # Get some information. # frm <- model$frame names <- row.names(frm) ylevels <- attr(model, "ylevels") ds.size <- model$frame[1,]$n # #...