computeWeights: Compute Propensity Score Weights

View source: R/utility_functions.R

computeWeightsR Documentation

Compute Propensity Score Weights

Description

Computes inverse probability treatment weights (IPTW) for ATE or ATT estimation.

Usage

computeWeights(population, estimator = "ate")

Arguments

population

A data frame containing treatment assignments and propensity scores.

estimator

Type of estimator, either "ate" (average treatment effect) or "att" (average treatment effect on the treated).

Value

A vector of computed weights.


debiasedTrialEmulation documentation built on March 20, 2026, 1:07 a.m.