LinCDETreePredict: LinCDETreePredict

View source: R/predict.LinCDE.R

LinCDETreePredictR Documentation

LinCDETreePredict

Description

This function conducts prediction of a LinCDE tree.

Usage

LinCDETreePredict(X, tree, currentRow = 1)

Arguments

X

input matrix for prediction, of dimension nobs x nvars; each row represents an observation vector.

tree

a LinCDE tree.

currentRow

an integer specifying the node position in tree. If the currentRow-th row of the tree is not a terminal node thus a split, the function LinCDETreePredict is applied to the left and right children of the split. If the currentRow-th row of the tree is a terminal node, predictions are computed.

Value

The function returns a list of values.

  • membership: length n vector: each element represents the row (terminal node) that a sample falls into.


ZijunGao/LinCDE documentation built on Jan. 2, 2023, 11:14 p.m.