predict.RFEAT: Model prediction for Random Forest + Efficiency Analysis...

Description Usage Arguments Value Examples

View source: R/userPredictions.R

Description

This function predicts the expected output by a RFEAT object.

Usage

1
2
## S3 method for class 'RFEAT'
predict(object, newdata, x, ...)

Arguments

object

A RFEAT 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

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

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

MiriamEsteve/EAT documentation built on Jan. 18, 2022, 6:55 p.m.