Based on the paper Bayesian causal effect estimation for categorical data using staged tree models by Andrea Cremaschi, Manuele Leonelli and Gherardo Varando, published in Bayesian Analysis.