SelectionBias: Calculates Bounds for the Selection Bias for Binary Treatment and Outcome Variables

Computes bounds and sensitivity parameters as part of sensitivity analysis for selection bias. Different bounds are provided: the SV (Smith and VanderWeele), sharp bounds, AF (assumption-free) bound, GAF (generalized AF), and CAF (counterfactual AF) bounds. The calculation of the sensitivity parameters for the SV, sharp, and GAF bounds assume an additional dependence structure in form of a generalized M-structure. The bounds can be calculated for any structure as long as the necessary assumptions hold. See Smith and VanderWeele (2019) <doi:10.1097/EDE.0000000000001032>, Zetterstrom, Sjölander, and Waernabum (2025) <doi:10.1177/09622802251374168>, Zetterstrom and Waernbaum (2022) <doi:10.1515/em-2022-0108>, and Zetterstrom (2024) <doi:10.1515/em-2023-0033>.

Package details

AuthorStina Zetterstrom [aut, cre] (ORCID: <https://orcid.org/0000-0003-0730-9425>), Ingeborg Waernbaum [aut] (ORCID: <https://orcid.org/0000-0002-4457-5311>)
MaintainerStina Zetterstrom <stina.zetterstrom@gmail.com>
LicenseMIT + file LICENSE
Version2.1.0
URL https://github.com/StinaZet/SelectionBias
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("SelectionBias")

Try the SelectionBias package in your browser

Any scripts or data that you put into this service are public.

SelectionBias documentation built on Nov. 5, 2025, 6:48 p.m.