.generate.ps | R Documentation |
This function is designed for use within 'weighting()' and 'assess()'.
.generate.ps(data, sample_indicator, covariates, estimation_method)
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") |
sample participation probabilities for each unit in the data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.