Skip to contents

Subset Population so Population Covariates are within bounds of Sample Covariates

Usage

.trim.pop(data, sample_indicator, covariates)

Arguments

data

data frame comprised of "stacked" sample and target population data

sample_indicator

variable name denoting sample membership (1 = in sample, 0 = out of sample)

covariates

vector of covariate names in data set that predict sample membership

Value

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