As pointed out by William Nilsson in email correspondence, when a stratum contains only treatment observations or only control observations, causalBoosting() encounters a fatal error. This is presumably true of causalMARS() and PTOforest() as well. The issue here is to check at the beginnings of these functions that each stratum contains both treatment and control observations, and to exit with an informative error message if not.