explain_forest: Explain the results from CEA forests using best linear...

Description Usage Arguments Value References Examples

View source: R/explain_forest.R

Description

explain_forest Fits a linear regression to the estimated heterogeneous effects to assess the determinants of heterogeneity. Uses augmented inverse probability weighting (AIPW) to de-bias the scores.

Usage

1
2
3
4
5
6
7
8
explain_forest(
  forest,
  X = NULL,
  alpha = 0.05,
  WTP = NULL,
  robust.se = TRUE,
  subset = NULL
)

Arguments

forest

A trained CEA forest.

X

The variables to include in the model. If NULL, and intercept only model is run, which gives the ATE.

alpha

The desired significance level, defaults to 0.05.

WTP

The WTP for the net monetary benefit forest. Uses the WTP supplied to the CEA forest if NULL.

robust.se

If robust (sandwich) standard errors are desired. Defaults to TRUE.

subset

A specified subset of the data to compute the regression on.

Value

Returns the results from linear regression(s) on the estimated heterogeneous effects with supplied covariates with asymptotically valid standard errors.

References

Chernozhukov, Victor, and Vira Semenova. "Simultaneous inference for Best Linear Predictor of the Conditional Average Treatment Effect and other structural functions." arXiv preprint arXiv:1702.06240 (2017).

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.