covariate_table: Create Covariate Balance Table

Description Usage Arguments

View source: R/covariate_table.R

Description

This function is designed for use within 'assess().'

Usage

1
2
3
4
5
6
7
8
covariate_table(
  trial,
  selection_covariates,
  data,
  weighted_table = FALSE,
  selection_method = "lr",
  is_data_disjoint = TRUE
)

Arguments

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


katiecoburn/generalizeR documentation built on Oct. 28, 2020, 4:43 a.m.