View source: R/predict.LinCDE.R
LinCDETreePredict | R Documentation |
This function conducts prediction of a LinCDE tree.
LinCDETreePredict(X, tree, currentRow = 1)
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 |
The function returns a list of values.
membership: length n vector: each element represents the row (terminal node) that a sample falls into.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.