Skip to content

EmilRehnberg/party.readpaths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

party.readpaths R package

The original party package is missing a function for reading the splitting criteria for each terminal node.

This package adds such a function: readCtreePaths.

Note: there is successor package to party named partykit. That package has a hidden function for the same purpose as readCtreePaths that can be found with partykit:::.list.rules.party.

Example

airq <- subset(airquality, !is.na(Ozone))
act <- party::ctree(Ozone ~ .,data = airq)
readCtreePaths(act, airq)
#>   Node                     Path
#> 1    3 Wind <= 6.9 & Temp <= 82
#> 2    5  Temp <= 77 & Wind > 6.9
#> 3    6   Temp > 77 & Wind > 6.9
#> 4    8 Wind <= 10.3 & Temp > 82
#> 5    9  Wind > 10.3 & Temp > 82

See DESCRIPTION for dependencies.

About

Adds a function for reading the terminal node paths splitting criteria from party ctree

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages