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 Nov. 17, 2023, 8:21 a.m.