Weird implementation of a regression tree for identification of convergence clubs (see Postiglione, Benedetti & Lafratta 2010).
_demo.Rapplies this approach to a simulated dataset and to the dataset discussed in and prepared bydata_prep.R(for illustratory purposes).data_prep.Rcontains code to prepare the data (not included) from the Cambridge Econometrics European Regional Database.tree_core.Rholds the main functionality and some helper functions. The main wrapper isget_nodes().tree_aux.Rcontains a variety of helper functions.cpp_implementation.cppprovides a C++ implementation (done via Rcpp) of a computationally intensive part of the algorithm and is sourced intree_core.R.
Postiglione, P., Benedetti, R., & Lafratta, G. (2010). A regression tree algorithm for the identification of convergence clubs. Computational Statistics & Data Analysis, 54(11), 2776-2785.