compute_ipw: Get inverse probability weighted (IPW) estimate from nuisance...

Description Usage Arguments

View source: R/est_ipw.R

Description

Get inverse probability weighted (IPW) estimate from nuisance parameters

Usage

1
compute_ipw(g_output, e_output, idx_treat, idx_cntrl)

Arguments

g_output

Object containing results from fitting the propensity score regression, as produced by a call to fit_g_mech.

e_output

Object containing results from fitting the propensity score regression while conditioning on mediators, as produced by a call to fit_e_mech.

idx_treat

A numeric vector providing the indices corresponding to units that received treatment (A = 1), for a binary intervention.

idx_cntrl

A numeric vector providing the indices corresponding to units that did not receive treatment (A = 0), for a binary intervention.


nhejazi/medshift documentation built on Feb. 8, 2022, 10:55 p.m.