An intermediate function used for plotting
makeplots(
negative,
opfit. = opfit,
trainset,
covariates,
outcomevariable,
data. = data,
hte_effect_setup,
varlabel,
maintitle,
legend.x = 0.8,
legend.y = 0.25,
...
)
A plot visualizing the tree and estimated treatment effect in each node.
a logical value indicating whether we expect the treatment effect to be negative. The default is set as FALSE.
tree structure generated from causal tree algorithm.
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 data frame containing the variables in the model.
a empty list to store the adjusted treatment effect.
a named vector containing variable labels.
a character string indicating the main title displayed when plotting the tree and results. The default is set as "Heterogeneous Treatment Effect Estimation".
x and y coordinate to position the legend. The default is set as (0.08, 0.25).
further arguments passed to or from other methods.