Learn R Programming

semtree (version 0.9.20)

predict.semforest: Predict method for semtree and semforest

Description

Predict method for semtree and semforest

Usage

# S3 method for semforest
predict(object, data, type = "node_id", ...)

Value

Object of class matrix.

Arguments

object

Object of class semtree or `semforest`.

data

New test data of class data.frame. If no data is provided, attempts to extract the data from the object.

type

Type of prediction. One of `c('node_id')`. See Details.

...

further arguments passed to or from other methods.

Author

Caspar J. van Lissa, Andreas Brandmaier