The goal of selectioninterval is to provide a confidence interval for a range of possible estimates, given a logistic model for the inverse probability weights. Currently, ordinary least squares and two-stage least squares are the only supported estimators.
To install, run
library(devtools)
install_github("matt-tudball/selectioninterval")
This is a basic example of a selection bias sensitivity analysis:
library(selectioninterval)
## To be done
Tudball, M., Hughes, R., Tilling, K., Bowden, J., Zhao, Q. Sample-constrained partial identification with application to selection bias. Biometrika. https://academic.oup.com/biomet/advance-article/doi/10.1093/biomet/asac042/6649721 (2022).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.