View source: R/cost_function.R
cost_function | R Documentation |
Causal Tree cost function
cost_function(splits, outcome, treat, minsize, alpha)
splits |
logical subsetting vector for observations to use. |
outcome |
name of the outcome variable as character vector. |
treat |
name of the treatment indicator variable as character vector (treatment indicator must be binary numeric 1 == treatment, 0 == control with no NA). |
minsize |
minimum number of treatment and control observations that must be present in each split as numeric vector. |
alpha |
weighting of cost function numeric vector between 0-1. weights closer to 1 put more emphasis on maximizing heterogeneity. weights closer to 0 put more weight on precisely estimating treatment effects. |
numeric vector with split cost
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.