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

Description Usage Arguments Details Value

Description

This function estimates matching-based bounds on the two natural direct effects

Usage

1
2
DeltaBounds(Z, Y, S, W, S.cat = NULL, Gamma = 1, Psi = 1,
  NDE = "Delta1", R = 500, conf = 0.95)

Arguments

Z

A vector of treatment indicators.

Y

A vector of (binary) outcomes.

S

A vector of biomarker values, i.e., potential mediators

W

A vector or matrix of covariates to be used in the matching

S.cat

(Optional) vector containing a coarsened version of S. There should be at least one treated and one untreated subject within each level of S.cat. By default (S.cat=NULL), S is split into quartiles.

Gamma

The sensitivity parameter controlling the odds ratio between the true and estimated odds of a discordant pair favoring the treatment. Default is 1 (corresponding to no unmeasured confonding), values >= 1 are valid.

Psi

The sensitivity parameter controlling the odds ratio between the true and estimated odds of a pair being discordant. Default is 1 (corresponding to no unmeasured confonding), values >= 1 are valid.

NDE

Specifies which natural direct effect (NDE) to calculate. Valid options are "Delta1" (the default) and "Delta0", corresponding to E(Y^{1S(1)} - Y^{0S(1)}) and E(Y^{1S(0)} - Y^{0S(0)}) respectively.

R

Number of bootstrap samples used to estimate uncertainty intervals. Defaults to 500.

conf

Confidence level for the bootstrapped uncertainty intervals. Defaults to 0.95.

Details

This function computes uncetainty intervals for natural direct effects which incorporate uncertainty in the point estimate due to both possible unmeasured confounding and statistical uncertainty in estimation due to the matching procedure. Currently, percentile-based bootstrap uncertainty intervals are returned as they appear to yield somewhat better coverage than alternatives.

Value

A vector of five elements containing:

delta

The point estimate for the NDE.

delta.II

The ignorance interval for the NDE, reflecting only uncertainty due to unmeasured confounding as reflected by Gamma and Psi.

delta.CI

The confidence interval for the NDE, reflecting only stochastic uncertainty, ignoring uncertainty due to unmeasured confounding.

delta.UI

The uncertainty interval for the NDE, reflecting both sources of uncertainty.


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