Predict method for semtree and semforest

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

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.

Value

Object of class matrix.

Author

Caspar J. van Lissa, Andreas Brandmaier