EAT_leaf_stats: Descriptive Summary Statistics Table for the Leaf Nodes of an...

View source: R/EAT.R

EAT_leaf_statsR Documentation

Descriptive Summary Statistics Table for the Leaf Nodes of an Efficiency Analysis Trees model

Description

This function returns a descriptive summary statistics table for each output variable calculated from the leaf nodes observations of an Efficiency Analysis Trees model. Specifically, it computes the number of observations, the proportion of observations, the mean, the variance, the standard deviation, the minimum, the first quartile, the median, the third quartile, the maximum and the root mean squared error.

Usage

EAT_leaf_stats(object)

Arguments

object

An EAT object.

Value

A list or a data.frame (for 1 output scenario) with the following summary statistics:

  • N: number of observations.

  • Proportion: proportion of observations.

  • mean: mean.

  • var: variance.

  • sd: standard deviation.

  • min: minimun.

  • Q1: first quartile.

  • median: median.

  • Q3: third quartile.

  • max: maximum.

  • RMSE: root mean squared error.

Examples

simulated <- Y1.sim(N = 50, nX = 3)
EAT_model <- EAT(data = simulated, x = c(1, 2, 3), y = 4, numStop = 10, fold = 5)
EAT_leaf_stats(EAT_model)


eat documentation built on Jan. 10, 2023, 5:13 p.m.