split | R Documentation |
sample splitting function
split(data, vars, outcome, treat, minsize, alpha)
data |
list of predictor, treatment assignment and outcome variables |
vars |
names of the predictors as character vector. |
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. |
list containing (split = splitting information, subset = logical vector indicating left + right observations, data = observations used in split, var = variable that was split)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.