.trim.pop | R Documentation |
Subset Population so Population Covariates are within bounds of Sample Covariates
.trim.pop(data, sample_indicator, covariates)
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 |
trim_pop
returns a data frame, where the target population covariates do not exceed the bounds of the sample covariates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.