trim_pop: Subset Population so Population Covariates are within bounds...

Description Usage Arguments Value

View source: R/trim_pop.R

Description

Subset Population so Population Covariates are within bounds of Trial Covariates

Usage

1
trim_pop(trial, selection_covariates, data)

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

Value

trim_pop returns a data frame, where the target population covariates do not exceed the bounds of the trial covariates


benjamin-ackerman/generalize documentation built on Oct. 11, 2020, 3:58 a.m.