Description Usage Arguments Author(s) Examples
View source: R/TriCTree_predict.R
This function predicts the classification of test data with application of the generated classification tree
1 | TriCTree_predict(data, data2, param, prob = 0.5)
|
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 |
Yan Sun, Yanke Zhu, Tao Liu
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.