This function is to save files necessary to run Shiny app to visualize causal tree and the estimated heterogeneous treatment effects in an interactive way.
saveFiles(
model,
data,
outcomevariable,
treatment_indicator,
propensity_score = "",
filePath = ""
)
No return value. It is used to save necessary files temporarily to run Shiny App.
a tree model constructed by hte_causalTree, hte_matchinleaves,
or hte_ipw
.
a data frame containing the variables in the model.
a character representing the column name of the outcome variable.
a character representing the column name for the treatment variable in the causal setup.
a character representing the column name of the propensity score.
a character string representing the path name to save the files temporarily.