Learn R Programming

rbounds (version 2.2)

binarysens: Sensitivity Test for Matched Binary Outcome

Description

Function to calculate Rosenbaum bounds for binary data.

Usage

binarysens(x,y, Gamma=6, GammaInc=1)

Arguments

x

Count of the first set of discrepant pairs in a table of treated and control outcomes.

y

Count of the second set of discrepant pairs in a table of treated and control outcomes.

Gamma

Upper-bound on gamma parameter.

GammaInc

To set user specified increments for gamma parameter.

References

Rosenbaum, Paul R. (2002) Observational Studies. Springer-Verlag.

See Also

See also psens, hlsens, mcontrol

Examples

Run this code
# NOT RUN {
# Example From Rosenbaum Observational Studies Pg 112
# Success: Died From Lung Cancer
# 110 Discrepant Pairs
# 12 Discrepant Pairs

# Sensitivity Test
binarysens(12,110)

# }

Run the code above in your browser using DataLab