SVboundsharp | R Documentation |
SVboundsharp()
returns a string that indicates if the SV bound is sharp or
if it's inconclusive. If the bias is negative, the recoding of the treatment
has to be done manually.
SVboundsharp(BF_U, pY1_T0_S1)
BF_U |
Input scalar. The bounding factor for the SV bounds in the
subpopulation. Must be equal to or above 1. Can be inserted directly or as
output from |
pY1_T0_S1 |
Input scalar. The probability P(Y=1|T=0,I_S=1). |
A string stating if the SV bound is sharp or inconclusive.
Smith, Louisa H., and Tyler J. VanderWeele. "Bounding bias due to selection." Epidemiology (Cambridge, Mass.) 30.4 (2019): 509.
Zetterstrom, Stina, and Ingeborg Waernbaum. "SelectionBias: An R Package for Bounding Selection Bias." arXiv preprint arXiv:2302.06518 (2023).
# Example where the SV bound is sharp.
SVboundsharp(BF_U = 1.56, pY1_T0_S1 = 0.33)
# Example where the SV bound is inconclusive.
SVboundsharp(BF_U = 2, pY1_T0_S1 = 0.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.