Skip to contents

This function is designed for use within 'weighting()' and 'assess()'.

Usage

.generate.ps(data, sample_indicator, covariates, estimation_method)

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")

Value

sample participation probabilities for each unit in the data frame