Learn R Programming

rtemis (version 0.79)

predict.addTreeRaw: Predict method for addTreeLite object

Description

Predict method for addTreeLite object

Usage

# S3 method for addTreeRaw
predict(object, newdata, n.feat = NCOL(newdata),
  fixed.cxr = NULL, cxr.newdata = NULL, cxr = FALSE,
  cxrcoef = FALSE, verbose = FALSE, trace = 0, ...)

Arguments

object

addTreeRaw

newdata

Data frame of predictors

n.feat

[Internal use] Integer: Use first n.feat columns of newdata to predict. Defaults to all

fixed.cxr

[Internal use] Matrix: Cases by rules to use instead of matching cases to rules using newdata

cxr.newdata

[Internal use] Data frame: Use these values to match cases by rules

cxr

Logical: If TRUE, return list which includes cases-by-rules matrix along with predicted values

cxrcoef

Logical: If TRUE, return cases-by-rules * coefficients matrix along with predicted values

verbose

Logical: If TRUE, print messages to console

trace

Not used