Skip to content

ecmerkle/edpart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

edpart

Ed's recursive partitioning and regression trees package to reproduce some results of the rpart package. The edpart package is incomplete and will probably never be completed. It is written purely in R with no dependencies, so it might be useful for self-study. Here is an example of its use:

library("edpart")
data(Boston, package = "MASS")

## tree predicting medv based on the first 13 variables
efit <- edpart(Boston$medv, Boston[,1:13])

## returns cptable akin to rpart's cptable
efit

## comparison to rpart
library("rpart")
rfit <- rpart(medv ~ ., data = Boston)
rfit$cptable

If you are interested in citing this package, I prefer that you cite the paper below instead (the package was used to write the paper):

Merkle, E. C. & Shaffer, V. A. (2011). Binary recursive partitioning: Background, methods, and application to psychology. British Journal of Mathematical and Statistical Psychology, 64, 161--181. (DOI: 10.1348/000711010X503129)

About

Ed's recursive partioning code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages