boot_HRbound: Bootstrap Harm Rate Bound

Description Usage Arguments Details Value Examples

Description

Calculate bootstrap confidence interval for the bound of harm rate from the treatment to the outcome.

Usage

1
boot_HRbound(Tr, S, Y, c1 = 0, c3 = 1, nboot, conf.level = 0.95)

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.

c1

0<=c1<=1, representing the harm rate from the treatment to the surrogate.

c3

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

nboot

Number of bootstrap samples. A positive integer.

conf.level

Confidence level of the interval.

Details

This function computes the bootstrap confidence interval for the sharp bound of harm rate from the treatment to the surrogate.

Value

Calculate confidence interval for the bound of the hard rate from the treatment to the outcome.

Examples

1
boot_HRbound(Tr = ACCORD_eye[, 1], S = ACCORD_eye[, 2], Y = ACCORD_eye[, 3], n = 1000)

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