View source: R/covariate_table.R
Create Covariate Balance Table
1 2 3 4 5 6 7 8 9 10 11 12 |
trial |
variable name denoting binary trial participation (1 = trial participant, 0 = not trial participant) |
selection_covariates |
vector of covariate names in data set that predict trial participation |
data |
data frame comprised of "stacked" trial and target population data |
weighted_table |
should the output be a weighted table?
If |
selection_method |
method to estimate the probability of trial
participation. Default is logistic regression ("lr").
Other methods supported are Random Forests ("rf") and Lasso ("lasso"),
passed to |
sl_library |
vector of SuperLearner library methods. If ‘selection_method' = ’super', specify names of methods to include in library. Default is NULL. |
survey_weights |
variable name of population data's complex survey weights. Default is |
trim_weights |
logical. If |
trim_pctile |
numeric. If 'trim_weights' is |
is_data_disjoint |
logical. If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.