Skip to contents

Internal function that wraps either policytree::policy_tree() or fastpolicytree::fastpolicytree() depending on user preference and package availability.

Usage

.compute_policy_tree(X, Gamma, depth, tree_method = "policytree")

Arguments

X

Covariate matrix

Gamma

Matrix of doubly robust scores

depth

Integer depth of tree (1 or 2)

tree_method

Character string: "policytree" or "fastpolicytree"

Value

Policy tree object