Learn R Programming

eat (version 0.1.4)

plotEAT: Efficiency Analysis Trees Plot

Description

Plot a tree-structure for an Efficiency Analysis Trees model.

Usage

plotEAT(object)

Value

Plot object with the following elements for each node:

  • id: node index.

  • R: error at the node.

  • n(t): number of observations at the node.

  • an input name: splitting variable.

  • y: output prediction.

Arguments

object

An EAT object.

Examples

Run this code
# \donttest{
simulated <- X2Y2.sim(N = 50, border = 0.2)
EAT_model <- EAT(data = simulated, x = c(1,2), y = c(3, 4))

plotEAT(EAT_model)
# }

Run the code above in your browser using DataLab