View source: R/propensity_weight.R
propensity_weight | R Documentation |
Computes the inverse propensity that each sample observation was included in the sample as opposed to being from the population.
propensity_weight(sample_df, synthetic_population, model = "logreg",
factor_cols = NA, predictor_cols = NA)
sample_df |
dataframe |
synthetic_population |
dataframe |
model |
string ('rf', 'logreg') |
factor_cols |
vector |
predictor_cols |
vector |
weighted_sample (dataframe)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.