# Tree's branch ends to the same leaf twice?

I am in R using the DoctorVisits dataset from the AER package. I chose the column lchronic to make this tree

Thing is that I don't understand why the algorithm made the branch freerepat: no seeing as it results in two leaves which are both no. The tree is basically equivalent to this pruned one:

• Maybe you could ask the package authors? – kjetil b halvorsen Jan 21 at 18:33
• For rare events, one might expect every leaf of a tree to be a no. Some “no”’s may just be more likely than others. – guy Jan 21 at 18:46