propensity_weight: Perform propensity weighting.

View source: R/propensity_weight.R

propensity_weightR Documentation

Perform propensity weighting.

Description

Computes the inverse propensity that each sample observation was included in the sample as opposed to being from the population.

Usage

propensity_weight(sample_df, synthetic_population, model = "logreg",
  factor_cols = NA, predictor_cols = NA)

Arguments

sample_df

dataframe

synthetic_population

dataframe

model

string ('rf', 'logreg')

factor_cols

vector

predictor_cols

vector

Value

weighted_sample (dataframe)


AnthonyRentsch/surveyutils documentation built on Feb. 19, 2024, 9:15 a.m.