Description Usage Arguments Value Examples
View source: R/cea_policy_tree.R
Conduct inference for a personalized treatment policy, either using a manually specified policy or a learned policy.
1 2 3 4 5 6 7 8 9 | infer_policy(
forest,
treat.policy,
WTP = NULL,
ci.level = 0.95,
robust.se = FALSE,
boot.ci = FALSE,
R = 999
)
|
forest |
A trained CEA forest. |
treat.policy |
A logical vector or cea policy tree defining the subset covered by the policy. |
WTP |
Willingness to pay for a one unit increase in the outcome. If NULL, the WTP supplied to the CEA forest is used. |
ci.level |
Desired significance level (for confidence intervals). |
robust.se |
Whether or not robust (sandwich) standard errors are desired. Defaults to FALSE. Ignored when boot.ci=TRUE. |
boot.ci |
Whether or not bootstrapped confidence intervals are desired. Defaults to FALSE. |
R |
The number of bootstrap replications. Defaults to 999. Ignored when boot.ci=FALSE. |
Returns a matrix containing estimates for the average welfare gain per population member under various treatment policies (treat everyone vs. treat no one; treat suggested subset vs. treat no one; treat suggested subset vs. treat everyone). Also outputs the share of the popuation covered by the policy.
1 2 3 4 | ## Not run:
To be added...
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.