predict.linadleaves: Predict method for 'linadleaves' object

View source: R/linadleaves.R

predict.linadleavesR Documentation

Predict method for linadleaves object

Description

Predict method for linadleaves object

Usage

## S3 method for class 'linadleaves'
predict(
  object,
  newdata,
  type = c("response", "probability", "all", "step"),
  n.leaves = NULL,
  fixed.cxr = NULL,
  cxr.newdata = NULL,
  cxr = FALSE,
  cxrcoef = FALSE,
  verbose = FALSE,
  ...
)

Arguments

object

shytreeRaw

newdata

Data frame of predictors

type

Character: "response", "probability", "all", "step"

n.leaves

Integer: Use the first n.leaves of the tree for prediction

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

...

Not used

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on May 4, 2024, 7:40 p.m.