extrule {Harvest.Tree}R Documentation

Bound of rules

Description

This function takes in a ruleset and output the lower and upper bounds of each rule.

Usage

extrule(myrules, varname)

Arguments

myrules

A 3 column matrix output of function "hughs.path.rpart"

varname

the names of x variables

Value

A p*2 matrix, p is the length of varname. The first column is the lower bound, the second column is the upper bound. The default lower bound is "-Inf",the default upper bound is "Inf". row corresponse to x variables ordered in the data matrix given to rpart.


[Package Harvest.Tree version 1.1 Index]