TriCTree_predict: A function used for prediction in the TriCTree package

Description Usage Arguments Author(s) Examples

View source: R/TriCTree_predict.R

Description

This function predicts the classification of test data with application of the generated classification tree

Usage

1
TriCTree_predict(data, data2, param, prob = 0.5)

Arguments

data

Train dataset to generate the classification tree

data2

Test dataset

param

The parameters of the classification tree

prob

Prior proportion of the data with indicating value of 1

Author(s)

Yan Sun, Yanke Zhu, Tao Liu

Examples

1
2
3
4
5
dataxx = simulate_normal(n=40, p=0.8)
data = data.frame(dataxx[2*(1:400), ])
data2 = data.frame(dataxx[2*(1:400)-1, ])
param = TriCTree_tripart(X1~., dataxx1)
TriCTree_predict(data, data2, param=param, prob = 0.5)

taotliu/TriCTree documentation built on July 5, 2020, 12:04 p.m.