Estimating individualized treatment rules for treatments with hierarchical structure