extrule: Bound of rules

Description Usage Arguments Value

View source: R/extrule.R

Description

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

Usage

1
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.


Harvest.Tree documentation built on May 2, 2019, 3:31 p.m.