Learn R Programming

forestsearch (version 0.1.0)

fit_policy_trees: Fit policy trees up to specified depth

Description

Fits policy trees of depths 1 through maxdepth and computes metrics

Usage

fit_policy_trees(X, data, dr.scores, maxdepth, n.min)

Value

List with trees and combined values

Arguments

X

Matrix. Covariate matrix

data

Data frame. Original data

dr.scores

Matrix. Doubly robust scores

maxdepth

Integer. Maximum tree depth (1-3)

n.min

Integer. Minimum subgroup size