Learn R Programming

policytree (version 1.0)

find_leaf_node: Query a tree with a sample

Description

Query a tree with a sample

Usage

find_leaf_node(tree, sample)

Arguments

tree

policy_tree tree object

sample

A vector of observations \(X_i\)

Value

The leaf node the sample falls in to.