predict.semtree: Predict terminal nodes

Description Usage Arguments Author(s)

View source: R/predict.semtree.R

Description

This function takes a dataset and predicts the terminal node id that matches the given observation

Usage

1
2
## S3 method for class 'semtree'
predict(object, data, type = "node_id", ...)

Arguments

object

semtree. A SEM tree node.

data

a data.frame with observations used for prediction

type

String. What type of prediction should be made? Currently, this only supports 'node_id', which returns the id of a terminal node.

...

Optional arguments passed to the function.

Author(s)

Caspar van Lissa, Andreas Brandmaier


semtree documentation built on July 30, 2021, 9:06 a.m.