View source: R/covariate_table.R
This function is designed for use within 'assess().'
1 2 3 4 5 6 7 8 | covariate_table(
trial,
selection_covariates,
data,
weighted_table = FALSE,
selection_method = "lr",
is_data_disjoint = TRUE
)
|
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 |
defaults to FALSE; whether weights are already included and do not need to be estimated |
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") |
is_data_disjoint |
defaults to TRUE. If TRUE, then trial and population data are considered independent. This affects calculation of the weights |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.