predict.mvTree: Make predictions based on a fitted tree

Description Usage Arguments Examples

View source: R/FunFor.R

Description

This function is to make predictions based on a fitted tree.

Usage

1
2
## S3 method for class 'mvTree'
predict(fit, newdata)

Arguments

fit

Saved tree object

newdata

A new X data matrix

Examples

1
predict(tree_fit, newX)

xiaotiand/FunFor documentation built on Dec. 23, 2021, 6:18 p.m.