How to find the separation and root of a node in a regression tree, I created a regression tree from several vectors, now I need to extract the root node from rpart from several vectors. file contains the numerical value of several vectors A , B , C , D , E , F , G , H ex. The vector contains 4,3,6,7,2,4,5, ... etc. Similar to other B, C, D, E, F, G, H. It is also necessary to extract F (which is the root node in my case) as the output of this input after creating the .thank tree you.sorry cannot put any image: (
Here is what I have done so far
log_data <- read.csv(file="C:\\Users\\AASHU\\Desktop\\CART\\syn.csv", header=T, as.is=T) library(rpart) fit <- rpart(A ~ B+C+D+E+F+G+H, log_data)
........... Now I need to extract root node F(F>=5.5) from fit (regression tree) and split it, can anyone help me?
Aashu source share