subgroupTree package implements the subgroup detection and permutation-based inference procedures from Using Recursive Partitioning to Find and Estimate Heterogenous Treatment Effects In Randomized Clinical Trials.
You can install the latest development version from github with:
devtools::install_github("molson2/subgroupTree", build_vignettes = TRUE)
You should also check out the package's vignette for a sample use case:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.