saveFiles {htetree} | R Documentation |
Save Necessary Files to Run Shiny App
Description
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.
Usage
saveFiles(
model,
data,
outcomevariable,
treatment_indicator,
propensity_score = "",
filePath = ""
)
Arguments
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. |
Value
No return value. It is used to save necessary files temporarily to run Shiny App.
[Package htetree version 0.1.18 Index]