cea_policy_tree: Train a policy tree after a CEA forest.

Description Usage Arguments Value References Examples

View source: R/cea_policy_tree.R

Description

cea_policy_tree Trains an efficient policy decision tree given a CEA forest (a wrapper for policytree::policy_tree).

Usage

1
2
3
4
5
6
7
8
cea_policy_tree(
  forest,
  X,
  WTP = NULL,
  depth = 2,
  ci.level = 0.95,
  robust.se = FALSE
)

Arguments

forest

A trained CEA forest.

X

A covariate matrix containing variables that are to be used in the policy tree.

WTP

Willingness to pay for a one unit increase in the outcome. If NULL, the WTP supplied to the CEA forest is used.

depth

The desired depth for the decision tree.

ci.level

Desired significance level (for confidence intervals).

robust.se

Whether or not robust (sandwich) standard errors are desired. Defaults to FALSE.

Value

Returns a trained policy tree.

References

Athey, S., & Wager, S. (2017). Efficient policy learning. arXiv preprint arXiv:1702.02896.

Examples

1
2
3
4
## Not run: 
To be added...

## End(Not run)

bonander/CEAforests documentation built on April 1, 2021, 10:57 a.m.