dot-trim.pop: Subset Population so Population Covariates are within bounds...

.trim.popR Documentation

Subset Population so Population Covariates are within bounds of Sample Covariates

Description

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


NUstat/generalizeR documentation built on Feb. 7, 2024, 6:39 p.m.