makeEDMtree {pinktoe}R Documentation

Construct a tree for one of the examples showing how pinktoe works

Description

Merely constructs a tree (rpart) object.

Usage

makeEDMtree()

Details

Constructs a particular tree using a given data frame and a list of variables (the ones in edmnumswehave. When transferring code between S and R sometimes tree objects (in S) differ from their "equivalent" partners (rpart objects) in R. Hence it is useful to sometimes be able to recompute them for the particular package in question.

Value

An object of class rpart which is the made tree.

Note

Useful for constructing an example

Author(s)

Guy P Nason

References

http://www.stats.bris.ac.uk/~magpn/Research/Pinktoe/Welcome.html

See Also

pinktoe

Examples

#
# Build the tree after loading rpart library
#
library("rpart")
data("mpincdf99")
mpincdf99tree <- makeEDMtree()

[Package pinktoe version 2.0 Index]