treatment_effect: Estimate the treatment effects.

View source: R/weighting.R

treatment_effectR Documentation

Estimate the treatment effects.

Description

Estimate the treatment effects.

Usage

treatment_effect(treatment, outcome, ps, weights, ...)

Arguments

treatment

logical vector for treatment status.

outcome

vector of outcome values.

ps

vector of propensity scores.

weights

vector of propensity score weights.

...

parameters passed [calculate_ps_weights()].

Value

the treatment effect.


jbryer/psa documentation built on June 13, 2025, 7:58 p.m.