This intermediate function is used to adjust the heterogeneous treatment effect estimated in each leaf with NN matching.
matchinleaves(
trainset = match_data,
covariates = covariates,
outcomevariable = outcomevariable,
hte_effect_setup = hte_effect_setup,
treatment_indicator,
con.num = 1,
...
)
A list for summarizing the results after matching.
a data frame only containing the variables used in the model and missings values are listwise deleted.
a vector of column names of all covariates (linear terms andpropensity score).
a character representing the column name of the outcome variable.
a empty list to store the adjusted treatment effect.
a character representing the column name of the treatment indicator.
a number indicating the number of units from control groups to be used in matching
further arguments passed to or from other methods.