saveFiles {htetree} | R Documentation |
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 = ""
)
model |
a tree model constructed by |
data |
a data frame containing the variables in the model. |
outcomevariable |
a character representing the column name of the outcome variable. |
treatment_indicator |
a character representing the column name for the treatment variable in the causal setup. |
propensity_score |
a character representing the column name of the propensity score. |
filePath |
a character string representing the path name to save the files temporarily. |
No return value. It is used to save necessary files temporarily to run Shiny App.