getBounds: Calculates matching-based bounds on the natural direct...

Description Usage Arguments Details Value

Description

Internal function for calculating matching-based bounds for the NDE.

Usage

1
getBounds(DAT, inds, Gamma = 1, Psi = Gamma, effect = "ATT")

Arguments

DAT

A data frame containing columns for the treatment (Z), outcome (Y), potential mediator (S and S.cat), and baseline covariates (W1, W2, ...)

inds

A vector of indicators for the bootstrap.

Gamma

The sensitivity parameter controlling the odds ratio between the true and estimated odds of a discordant pair favoring the treatment.

Psi

The sensitivity parameter controlling the odds ratio between the true and estimated odds of a pair being discordant.

effect

The causal effect to be estimated. Can be ATT or ATC.

Details

This function is called by the bootstrap procedure in the main DeltaBounds function.

Value

A vector of three elements containing:

  1. The estimated lower bound

  2. The estimated value

  3. The estimated upper bound


jwolfson/medMatch documentation built on May 20, 2019, 6:27 a.m.