plot_bound: Plot Harm Rate Bounds

Description Usage Arguments Details Value References Examples

Description

Present a plot for the bounds of harm rate from the treatment to the outcome.

Usage

1
plot_bound(Tr, S, Y, c3 = 1)

Arguments

Tr

Treatment variable, a vector taking value 1 or 0.

S

Surrogate variable, a vector taking value 1 or 0.

Y

Outcome variable, a vector taking value 1 or 0.

c3

0<=c3<=1, representing the upper bound for the propotion of the individuals that do not conform to causal necessity.

Details

This function plots the lower and upper sharp bounds of harm rate from the treatment to the surrogate when c1 varies.

Value

Lower and upper bound of the harm rate from the treatment to the outcome, and whether the individual surrogate paradox manifests.

References

Ma, L., Yin, Y., Liu, L. and Geng, Z. On the Individual Surrogate Paradox. Submitted

Examples

1
plot_bound(Tr = ACCORD_eye[, 1], S = ACCORD_eye[, 2], Y = ACCORD_eye[, 3], c3 = 0)

mlqmlq/HRSurrogate documentation built on May 14, 2019, 3:08 a.m.