I am building a model to detect perturbances in a dataset using rpart. below is a simple code:
model1 = rpart(OA~I0+IA,data=data,method="class",control = rpart.control(minsplit = 20, minbucket=1))
The resultant is a tree with "I0" as root node. Is there a way I can generate a tree by fixing the root node to "IA"?