What is treevalues?

The treevalues R package computes confidence intervals and p-values for the mean response within a region or the difference in mean response between two regions in a CART regression tree (built using the package rpart).

Because the regions in a regression tree are selected using the data, we cannot naively “double dip” in the same data to do inference on the means within these regions.

The treevalues package implements a selective inference approach to conduct inference without double dipping in the data.

How can I get treevalues?

Make sure that remotes is installed by running install.packages("remotes"), then type

remotes::install_github("anna-neufeld/treevalues")