This function is designed for use within 'weighting()' and 'assess()'.
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
- estimation_method
method to estimate the probability of sample membership. Default is logistic regression ("lr").Other methods supported are Random Forests ("rf") and Lasso ("lasso")