predict.EAT: Model Prediction for Efficiency Analysis Trees.

View source: R/userPredictions.R

predict.EATR Documentation

Model Prediction for Efficiency Analysis Trees.

Description

This function predicts the expected output by an EAT object.

Usage

## S3 method for class 'EAT'
predict(object, newdata, x, ...)

Arguments

object

An EAT object.

newdata

data.frame. Set of input variables to predict on.

x

Inputs index.

...

further arguments passed to or from other methods.

Value

data.frame with the original data and the predicted values.

Examples


simulated <- X2Y2.sim(N = 50, border = 0.2)
EAT_model <- EAT(data = simulated, x = c(1,2), y = c(3, 4))

predict(object = EAT_model, newdata = simulated, x = c(1, 2))



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